Re: [rvm-research] BlockAllocator Block Meta Data
Robin Garner <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The BlockAllocator class reserves 4 words per block (BlockAllocator.LOG_BYTES_IN_BLOCK_META), of which it uses 3 words. The Block Mark word (at offset FL_META_OFFSET) is currently set using a Word write operation - this is described in [1]. You could probably use the high-order 24 bits if you change the block mark to a byte write, but making it a bit (and having to do a read-modify-write) would have a performance impact. You also have a full word available at the next word offset. cheers [1] Garner, R., Blackburn, S. M., Frampton, D. Effective Prefetch for Mark-Sweep Garbage Collection ISMM '07 http://cs.anu.edu.au/people/Robin.Garner/pf-ismm-2007.pdf On 21/11/13 06:46, Nathan Ricci wrote: > Hello all, > > I had a question about the block meta data in the block allocator. > It seems like there is an entire word of meta data, but as far as I > can tell looking at markBlockMeta, checkBlockMeta, and > clearBlockMeta functions, only one bit is actually used. > > What I am trying to do is to keep the sweeper from collecting > certain objects (building off the Mark Sweep collector), and (in > addition to tracking the objects themselves) I think I need to > "mark" their blocks in a way that is not reset after each > collection. So I'm trying to use a bit of the block meta data to do > this. > > Are the other 31 bits of block metadata up for grabs? Or are they > used in some way I haven't discovered? > > Thanks, Nathan Ricci Tufts University > > > > ------------------------------------------------------------------------------ > > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech > innovation. Intel(R) Software Adrenaline delivers strategic insight > and game-changing conversations that shape the rapidly evolving > mobile landscape. Sign up now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > > > > > _______________________________________________ > Jikesrvm-researchers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSjps1AAoJEHm9xBvoMhva/SQIALL70XoQ0/5Ew5C/Wt0dIo4F VEMZ/4zBHsOg7v9NME49YA37kWVuovmBqCVhYLt8tAUQctCJEtFICKNaZ0Gpt5g5 KuIStiMt5Fxj/2Xy3vi+ZgGDjfz2CdbeMljbxHBl4nERucUtENtgq7JwlQ0gdghh aMyC3FQqFJFqu5g5tKcu5l2KA7+RDGC9IawX+n4Z5Ifpuy++BLHfjlIDKZzUUtw4 sJqjM9DlLYxrAWl1Z3QuDZYU/q4SwFH/iDAshPngbsNkb1y1kzWzfd6jR/FSYdr8 AnrTSAtCPSWCxUV0WEadqbMCn6OCAjXyL2F0FuBM4vLy2ZrSEIhv4IrssXLPc2Y= =nm8l -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk