This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: _Jv_InitPrimClass?
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 04 Mar 2002 16:02:33 +1300
- Subject: Re: _Jv_InitPrimClass?
- References: <86sn7hjbrj.fsf@megacz.com>
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.