This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Class layout question
- From: Tom Tromey <tromey at redhat dot com>
- To: sje at cup dot hp dot com
- Cc: java at gcc dot gnu dot org
- Date: 13 Jul 2005 10:57:40 -0600
- Subject: Re: Class layout question
- References: <200507131619.JAA02856@hpsje.cup.hp.com>
- Reply-to: tromey at redhat dot com
>>>>> "Steve" == Steve Ellcey <sje@cup.hp.com> writes:
Steve> _ZN1x6class$E:
Steve> data8 _ZTVN4java4lang5ClassE#+16
Steve> data8 0 <** This does not get output in Linux
Steve> data8 401000
Most likely this has to do with "hash synchronization".
On platforms where the necessary support has been written, gcj uses
"hash synchronization". This means that it uses lightweight locks and
a lookaside hash table to map objects to their locks.
This is controlled by a setting in configure.host. For platforms
without the required special support, we default to a simpler (but
more expensive) approach where a lock word is kept in the object
itself.
Tom