gcj uses reflection for every INVOKEINTERFACE?

Tom Tromey tromey@redhat.com
Thu Feb 26 15:39:00 GMT 2004


>>>>> "Adam" == Adam Megacz <adam@megacz.com> writes:

Adam> It looks like _Jv_LookupInterfaceMethodIdx() is getting called every
Adam> time a method overriding an interface method is invoked... is this
Adam> true? Is there any way around this?
This is the constant-time interface dispatch. If you look at
_Jv_LookupInterfaceMethodIdx you'll see it is quite small.
I think there's no way around doing some kind of lookup for interface
method dispatch.
As I recall the interface tables are built at runtime. So, yeah, you
probably need some reflection info around for all this to work.
Tom


More information about the Java mailing list

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