This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: BC ABI: Don't initialize vtable pointer
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Thu, 15 Jun 2006 13:47:50 -0400
- Subject: Re: BC ABI: Don't initialize vtable pointer
- References: <17553.34571.481134.686311@dell.pink>
Andrew Haley wrote:
+ volatile jclass new_class
+ = (jclass)_Jv_AllocObj (sizeof (java::lang::Class),
+ &java::lang::Class::class$);
+ const char *src = class_initializer + sizeof (void*);
+ volatile char *dst = (volatile char*)new_class + sizeof (void*);
Why "volatile" ?
Bryce