BC ABI: Don't initialize vtable pointer

Bryce McKinlay mckinlay@redhat.com
Thu Jun 15 17:55:00 GMT 2006


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



More information about the Gcc-patches mailing list