A step-by-step guide to building the hsdis disassembler library for OpenJDK 15 on macOS. hsdis is needed to inspect assembly code generated by the Java JIT compiler but isn't bundled with the JDK for licensing reasons. The guide covers cloning the OpenJDK source, checking out the correct tag, downloading GNU Binutils, running the build, and placing the resulting library in the JDK's lib/server directory. Once installed, the XX:+PrintAssembly JVM flag can be used to examine native assembly output, and tools like JitWatch can provide a richer analysis experience.

3m read timeFrom morling.dev
Post cover image

Sort: