This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch to avoid SegFault in natClass.cc
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.