GIJ _Jv_InterpMethod::run question
Tom Tromey
tromey@redhat.com
Wed Jul 12 15:24:00 GMT 2006
Kyle> SomeClass a = new SomeClass();
Kyle> a.someMethod();
Kyle> I am looking for the instance a, not the class SomeClass.
There's no reliable way to get that at the moment.
You could introduce a new variable which copies locals[0] after
locals have been initialized (look for the memcpy) and if the method
is not static.
Simply using locals[0] won't work because the user bytecode is free to
overwrite that slot. (Code generated by existing java compilers won't
do this... but the bytecode could be hand-written.)
What is for?
Tom
More information about the Java
mailing list