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]

a question about GCJ source code


Hi,

I just begun to read the source code of GCJ and felt confused on the layout of the java.lang.Object's instances. As we know, the first word in any object should be a pointer to a _Jv_VTable structure. However, I can't find this pointer in the definition of java::lang::Object class.

Interestingly, in /gcc/java/decl.c, I found this:

PUSH_FIELD(object_type_node, field, "vtable", dtable_ptr_type);

therefore, there seems to be a conflict.

can anyone explain this for me?

thanks a lot
yang chang


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