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: _Jv_InitPrimClass?


Adam Megacz wrote:

>Why is this in _Jv_InitPrimClass?
>
>  // We must set the vtable for the class; the Java constructor
>  // doesn't do this.
>  (*(_Jv_VTable **) cl) = java::lang::Class::class$.vtable;
>
>It appeared sometime in late December... why do we use it now, and why
>didn't we need it before?
>

Before that it was done in a special native constructor in Class.h, 
which was implicitly called by static initializers in prims.cc, which 
were generated by a preprocessor macro. The new way fixes all kinds of 
problems.

regards

Bryce.



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