Patch to avoid SegFault in natClass.cc

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Jul 16 18:02:00 GMT 2001


Alexandre Petit-Bianco wrote:

> Martin Kahlert writes:
>
> > The compiler generates a direct call to _Jv_IsInstanceOf, it does
> > *not* call java::lang::Class::isInstance, which would have called
> > _Jv_InitClass first.
>
> Do you you guys think it should be changed? (I which way it probably
> wouldn't go in 3.01 but only the trunk.)

Ideally, I think the compiler should be ensuring classes are
initialized before calling these routines. This way many redundant
calls can be eliminated.

Bryce.





More information about the Java-patches mailing list