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: