instruction timings / optimization ?

Charles Oliver Nutter headius at headius.com
Sat Sep 19 12:59:15 PDT 2009


On Sat, Sep 19, 2009 at 11:43 AM, John Rose <John.Rose at sun.com> wrote:
> Indeed:  Google "hotspot disassembler", or look at these links:
>
>   http://wikis.sun.com/display/HotSpotInternals/PrintAssembly
>   http://kenai.com/projects/base-hsdis
>
> It's a separate plugin rather than a built-in feature, for reasons of
> history and software ownership.  But having a plugin at that point is
> actually a pretty powerful hook.

I finally gave this a try and it seriously only took three steps to install:

1. Download the binaries linked from the first link (hosted on Kenai).
Only OS X and Solaris are there (someone should contrib a linux one)
2. Copy to JDK7/jre/lib/i386/client and /server as libhsdis-i386.{so|dylib}
3. Run with -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly

I'm looking at fib output right now :)

- Charlie


More information about the mlvm-dev mailing list