This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Class layout question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]