{ Make this readable }

Thursday, February 14, 2008

See (Hot)Spot Run

I've been looking for some information on the HotSpot compiler. I've posted my question on TheServerSide and Java Sun Forums. Sadly, I haven't received any answers/responses to my query. So, I'm going to post it here again hoping that someone will notice and provide a decent answer:

The Sun Hotspot whitepaper talks about various optimizations it performs. Is there a way to peek into the compiled code and see if the Java code we've written actually gets optimized the way it should as per the whitepaper?

With JVMTI based profilers we can only get to see method level hotspots, which is sometimes not sufficient.

There have been cases where the Hotspot fails or just decides not to optimize the code:
1) http://blogs.azulsystems.com/cliff/2007/11/to-clone-or-not.html
2) http://jroller.com/tackline/date/20040209#speed_through_smaller_methods

Ashwin.

0 comments: