Re: [rvm-research] Regarding Address of Object Reference in Field section of Object

Robin Garner <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The MMTk plan "poisoned" unconditionally sets and clears the low-order
bit of all object references - this is the regression test for object
read and write barriers.

cheers

On 14/01/14 15:53, Hari Krishnan wrote:
> 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] <mailto:[email protected]>> wrote:
> 
> 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]
> <mailto:[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] 
> <mailto:[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
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS1M9oAAoJEHm9xBvoMhvaWFsIALbynPPkxGQJrJJAkB9gTz2Y
dnVJjaYRDTWf8W4YyhOJPKF/PisMdOP2uD2B5PUdSWOxa21xVAutw7W1vO7zv9Pv
YB0A0P0MKbdtQxQ7RSaNfJkvJfind2/+c/s68CFtysssfKcFSkGXBb8K1oayx46+
kh/ryMXA/fFmpR1AfSpgQoG1UGrgxcMUFsqn9wNpSq9vZ8lUt+A1c57EDtbI7M/T
eJybjKG87K0f9lkW96OGGi65hc51v9F9sTnxYDQSV9AQ4o2gD3Qifb7vP6b7TVXb
opE+yvlI4Cpb5LcPvpaYZ51LfRKxTFTd0OtO89MhRnvHmGuzxBmjBDYP93JeS4U=
=GtC8
-----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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.