quick little CNI question

Bryce McKinlay bryce@albatross.co.nz
Sat Apr 1 00:00:00 GMT 2000


Anthony Green wrote:
> > Any updates on the progress of this (not in a hurry, just curious)?
>> Bryce McKinlay has done the interface changes. We're just waiting
> for FSF paperwork to go through before the changes go in (actually,
> Bryce, was there something else.... maybe to do with the interpreter?)

Yeah, I still need to sit down and figure out how the interpreter will work with
the new interface code. One option is to retain the existing
_Jv_LookupInterfaceMethod implementation in parallel - this would mean that the
interpreter would still work without significant changes, and might also be
useful as an interim solution to calling interfaces from CNI (as Tom suggests)
The other (more complex but faster) option would be to have the interpreter
behave more like a JIT, looking up the target method index of each
invokeinterface call as classes are loaded and storing it in memory somewhere.
Apparantly invokeinterface calls have an extra two unused bytes in the bytecode.
hmm... this might be the perfect place to put the index.
regards
 [ bryce ]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /