How to find custom instructions created from a class file

I would like to know what kind of native Java instructions the JIT compiler generates when the class file is loaded. Is there any way to find out?

I am running Linux on processor 586. And I am using the Sun JDK 1.6 21 update. Is there any tool I can use to find out what I'm looking for?

0
source share
1 answer

You will probably need -XX:+PrintOptoAssembly , but you will need a JVM debug build. Links to binary distributions seem to be no longer available, so you may need to build it from the source: http://download.java.net/jdk6/6u10/archive/

If you plan to try this with OpenJDK 7, this may be of interest: http://wikis.sun.com/display/HotSpotInternals/PrintAssembly

+2
source

All Articles