May 15, 2009

Hotspot Print Assembly

Since google fails at providing this information, and I haven’t blogged in a month:

It is possible to print assembly produced by the SUN Hotspot JVM’s JIT Compiler. In order to do so you will need a debug enabled JVM from http://download.java.net/jdk6/binaries/. The magic flag is +PrintOptoAssembly, and since its a JVM flag it needs a -XX: prefix. Additionally, code is only printed out as assembly if it gets JIT’d – so if you want everything printed, then you reduce the compile threshold. Consequently, an example command look like:

java -server -XX:+PrintOptoAssembly -XX:CompileThreshold=1 SomeJavaClass

Hopefully this is helpful to other people


- No comments Not publicly viewable


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

Trackbacks

May 2009

Mo Tu We Th Fr Sa Su
Apr |  Today  | Jun
            1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Search this blog

Tags

Galleries

Most recent comments

  • Apart from the plea "can I have your old one?" (the yearning never diminishes) I'd like to leave you… by Sue on this entry
  • Unfortunately I still haven't seen a film for which you have to read up on quantum mechanics as I mi… by Sue on this entry
  • I've never been to watch a film before when it's been recommended that you first read up on quantum … by Sue on this entry
  • Well this is very interesting, i really liked reading this blog, this was very informative and very … by Mio Navman Spirit S300 on this entry
  • I thought it was fascinating. Griffin isn't like any other, media–trained, polished politician, and … by Tim on this entry

Blog archive

Loading…

Hello

Not signed in
Sign in

Powered by BlogBuilder
© MMXIV