about non-compatible optimization (was: Re: patch to bring java vtables closer to g++ abi conformance)

Tuomas Leikola tuomas.leikola@digia.com
Mon Jan 28 02:03:00 GMT 2002


----- Original Message -----
From: <shudo@computer.org>
To: <java@gcc.gnu.org>
Sent: Saturday, January 26, 2002 8:30 AM
Subject: Re: about non-compatible optimization (was: Re: patch to bring java
vtables closer to g++ abi conformance)
> I measured the time taken to invoke a method 10,000,000
> times for GCJ. Java source files attached to this mail
> are compiled with -O option and executed on a 600 MHz
> Pentium III PC.
>> invokevirtual: 234 (faster than invokestatic)
> invokespecial: 68
> invokeinterface: 554
> invokestatic: 319
> (msec)

the same object or different objects? if they cause l2 cache misses? then
again, the object will most probably need to be accessed anyway.
how can invokestatic be slower? didn't it get inlined or what? (iirc,
private, static and final can be inlined if they are in the same library or
compilation unit)


More information about the Java mailing list

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