harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Aliev" <artem.al...@gmail.com>
Subject Re: [DRLVM][VM] -- which header bits are available for GC mark and GC forwarding use?
Date Thu, 24 Aug 2006 16:12:43 GMT
Weldon,

> > There bit layout was the following before new thread manager integration:
> > object info word contains:
> > 0 bit - available for GC
> > 1-6 bits - object hashcode
> > 7 bit - contention bit unused by TM, but used by GC_V4
> > 8-31 bits - other thread manager's data

The new Thread Manager use only 10-31 bit for its own data.
So you could also use 8-9 bits for GC purpose.

These bits could be read any time, but modified only at GC stop the
world phase, because they share a byte with a monitor recursion count
and other bits.
This byte is updated without a lock

Thanks
Artem

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message