I'd like to have a better understanding of what optimizations HotSpot might generate for my Java code at run time.
Is there a way to see the optimized code that HotSpot is using after it's been running for a while?
I'd like to have a better understanding of what optimizations HotSpot might generate for my Java code at run time.
Is there a way to see the optimized code that HotSpot is using after it's been running for a while?
You would need to use a debug build of the JVM. Then you can use some additional JVM parameters (such as -XX:+LogCompilation and -XX:+PrintOptoAssembly) which make the JVM to print out its optimizations.