Re: [rvm-research] Regarding Address of Object Reference in Field section of Object
Hari Krishnan <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <CAMJ8-RqyQ9c1LYPX_1JnyhXMWryAbRWQ168GvN3LCqb+v0=+xQ@mail.gmail.com> |
Robin, The process is basically to mark the references as I trace the objects. Since I want to mark the instance field references in each object, I want to mutate a single bit indicating the reference is processed. So yes to question (you want to add a single bit of metadata to each object reference ?).Thank you for your help. I want to try Read Barriers. I appreciate your quick response. Is there any code that already overrides read barrier? Cheers Hari Krishnan. On Mon, Jan 13, 2014 at 10:45 PM, Robin Garner <[email protected]>wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hari, > > Just to clarify, you want to add a single bit of metadata to each > object reference ? > > The "simplest"[1] solution is to use one of the two low-order bits of > each object reference (objects are always (at least) 4-byte aligned). > In order to do this you'll need a read barrier that masks out this > bit so that the mutator always sees aligned pointers, and a write > barrier that reinstates the metadata. > > Alternatively, if this is too expensive, I'd suggest adding additional > space to the object via the classloader - how easy this is depends on > how you want to use the data, how much space you're prepared to use etc. > > cheers > > [1] Read barriers are never simple :-/ > > On 14/01/14 12:01, Hari Krishnan wrote: > > Hi , > > > > I want to set a bit, toggle a bit and test a bit in the section > > where each address of the instance field (object references) saved > > in objects. Is there any bit that I can use in each object fields > > for this purpose? > > > > Cheers Hari Krishnan > > > > > > > ------------------------------------------------------------------------------ > > > > > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > > Learn Why More Businesses Are Choosing CenturyLink Cloud For > > Critical Workloads, Development Environments & Everything In > > Between. Get a Quote or Start a Free Trial Today. > > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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/ > > iQEcBAEBAgAGBQJS1MDVAAoJEHm9xBvoMhva2OcH/3zHuHwi+1cNkClzf8MdjytY > BCBi7Dl8CZ9SsejWleAQdwHUXQy1xuV1oJHh1LYHkWvSGAcj0L3psyKmtywMR45S > f9sVQQU8B8qmtDSJNk5jtQPiyDoLXAs1TUeAWB3qn6nXJSfI97vYlno8Jd6mM7UQ > pO+z73aoWXW8tUofo8XlO9nAyrDklp2NNhgBTK630pjEwOM4HhaThq486yLIYmj8 > 9XjoHwzI3IkD+rNB3Su67p7hxuF1lQnjlofq+6Ds5lNNLTD9aNDDVWpSmaQFiCmO > Ua5dijXzT9rIhu9ymqV3ErSQNNWs++dJfjYUylPwrUk1gwWMPJobM2mWQumzGds= > =qz+d > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Jikesrvm-researchers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers > ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Jikesrvm-researchers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers