Wednesday, March 10, 2010

hsdis-i386.dll

Sometimes seeing the actual assembly code that hotspot creates can be very helpful. "-XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly" should do the trick.
But you will probably get the following message:

Could not load hsdis-i386.dll; library not loadable; PrintAssembly is disabled

This happens when the library that does the actual disassembly is missing.
Building this library can be really tricky, especially on Windows. Here is a precompiled binary: hsdis-i386.zip (Windows x86)

3 comments:

  1. Thanks a ton. This was very helpful. It saved me lot of time and trouble.

    ReplyDelete
  2. Thanks a lot! It really helps.

    ReplyDelete