Boxing function types
Fredrik Öhrström
fredrik.ohrstrom at oracle.com
Fri Nov 27 06:40:09 PST 2009
Reinier Zwitserloot skrev:
> Crazy idea, perhaps, but can't the hotspot compiler rather easily
> eliminate an sequential boxing-unboxing, even across a method boundary?
>
It is not crazy at all! I do not know about Hotspot, but JRockit can
definitely do this. Have a look at:
http://blogs.oracle.com/ohrstrom/2009/05/pulling_a_machine_code_rabbit.html
(Scroll down to: The question is, how well will JRockit optimize *int
test(int i)*?)
For something that works with currently released JRockits, go to:
http://blogs.oracle.com/ohrstrom/2009/05/the_jsr292_endgame.htm
(Scroll down to: public class Example)
//Fredrik
More information about the closures-dev
mailing list