need to focus on java performance?

Andrew Haley aph@redhat.com
Thu May 25 18:29:00 GMT 2006


Tom Tromey writes:
 > >>>>> "Bryce" == Bryce McKinlay <mckinlay@redhat.com> writes:
 > 
 > Bryce> Finding the method's address is easy enough, but what about the
 > Bryce> address of the atable entry containing the pointer to the method?
 > Bryce> Thats what needs to be patched. Also, patching all the callers for a
 > Bryce> given class at once would mean we can drop all the unneeded
 > Bryce> trampolines, saving memory.
 > 
 > Well, one idea would be to put the address of the atable into the
 > trampoline itself.  The trampoline function could initialize the
 > class, rewrite the atable entry, and then forward the call.  (This is
 > more or less what my jit does.)
 > 
 > Now that I've said my bit, I think this thread is going off in the
 > weeds a bit.  As Andrew said in a different message, a big problem is
 > not that we don't know what to do -- this thread proves we can
 > generate ideas -- but that we don't have the time to implement it all.
 > 
 > To me this says that a good approach would be first to understand our
 > biggest problems, and then tackle them in order of expected payoff.

Exactly.  Profile applications and see where the time goes.

Andrew.



More information about the Java mailing list