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

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
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.