Filtering the output of -XX:+PrintAssembly

Christian Thalinger Christian.Thalinger at Sun.COM
Tue Nov 17 08:47:28 PST 2009


On Tue, 2009-11-17 at 10:24 -0600, Dennis Byrne wrote:
> The final paragraph of the hsdis README file [1] and second to last
> paragraph of the wiki page [2] suggests that the following command
> line only prints the assembly for the main method of my HelloWorld
> class.
> 
> /usr/lib/jvm/java-6-openjdk/jre/bin/java
> -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly
> -XX:PrintAssemblyOptions=hsdis-print-bytes -Xbatch
> -XX:CompileCommand=print,*HelloWorld.main HelloWorld

Omit -XX:+PrintAssembly, that should do the trick.  -- Christian



More information about the hotspot-dev mailing list