The Sun Hotspot whitepaper (http://java.sun.com/products/hotspot/whitepaper.html#3
) 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: