gcj uses reflection for every INVOKEINTERFACE?

Tom Tromey tromey@redhat.com
Fri Feb 27 01:48:00 GMT 2004


>>>>> "Bryce" == Bryce McKinlay <bryce@mckinlay.net.nz> writes:

Bryce> It would be possible to inline the itable lookup, thus avoiding the
Bryce> call to _Jv_LookupInterfaceMethodIdx. I expect that would give a
Bryce> moderate performance gain, but also possibly increase code size. It
Bryce> would be an interesting experiment.

Today I was wondering if gcj knows that this function is `pure'.  For
instance, will gcj hoist it out of a loop?  It seems like this could
be a useful (perhaps minor) optimization.

Tom



More information about the Java mailing list