Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 755 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 755 Bytes

hsdis macOS

hsdis is a plugin for the HotSpot Oracle JVM that allows you to print out the assembly of JIT'ed calls.

I built the artifact in this repo using binutils 2.28.

Instructions for installing are below.

Installation: JDK 1.8

cd $JAVA_HOME/jre/lib/server
wget https://raw.githubusercontent.com/a10y/hsdis-macos/master/hsdis-amd64.dylib

Installation: JDK 1.9

cd $JAVA_HOME/lib/server
wget https://raw.githubusercontent.com/a10y/hsdis-macos/master/hsdis-amd64.dylib

Usage

Assuming we have classfile Main.class present, a simple usage that works on JDK 1.8 and 1.9:

java -XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly Main