Class layout question

Tom Tromey tromey@redhat.com
Wed Jul 13 17:03:00 GMT 2005


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /