jboolean / _Jv_InstanceOf / .class compiler problem
Bryce McKinlay
bryce@albatross.co.nz
Sat Apr 1 00:00:00 GMT 2000
Alexandre Petit-Bianco wrote:
> Bryce McKinlay writes:
>> > I don't have a test case outside the context of the _Jv_IsInstanceOf
> > call. With my new implementation of this method (in the constant
> > time patch), its result value never gets set properly (debugger
> > shows random garbage values), and so "instanceof" always returns
> > true. But this only occurs when dealing with code compiled from
> > .class files. The source compiler and interpreter are unaffected.
>> I definitely should look into that. I need the full patch. A test case
> would be nice too.
Here is the gcj patch. The runtime patch is here:
http://sourceware.cygnus.com/ml/java-patches/2000-q1/msg00138.html
There's a test case in cvs at
libgcj/libjava/testsuite/libjava.lang/InterfaceDispatch.java
The method that exhibits the problem is _Jv_IsAssignableFrom() in
natClass.cc. You might want to make it non-inline for debugging.
regards
[ bryce ]
More information about the Java
mailing list