This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj uses reflection for every INVOKEINTERFACE?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]