This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: a question about GCJ source code
- From: Andrew Haley <aph at redhat dot com>
- To: Yang Chang <yang at cs dot york dot ac dot uk>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 21 Feb 2005 14:04:22 +0000
- Subject: Re: a question about GCJ source code
- References: <4.3.2.7.0.20050221114852.027b4240@minster.cs.york.ac.uk>
Yang Chang writes:
>
> 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.
You won't: a vtable pointer is generated by the C++ compiler.
> 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.
I'm unaware of any conflict.
Andrew.