Last active
January 10, 2020 08:27
-
-
Save rabbitcount/3125efd3af0224a0535745c03e194dc3 to your computer and use it in GitHub Desktop.
Java 10 HotSpot Disassembly on macOS Mojave
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Download OpenJDK Reference Implementation Sources from | |
# http://jdk.java.net/java-se-ri/10 | |
curl -O https://download.java.net/openjdk/jdk10/ri/openjdk-10_src.zip | |
# Navigate to the hsdis sources | |
unzip openjdk-10_src.zip | |
cd openjdk/src/utils/hsdis | |
# Download binutils 2.26 | |
curl -O https://mirrors.syringanetworks.net/gnu/binutils/binutils-2.26.tar.gz | |
tar xzvf binutils-2.26.tar.gz | |
# Build hsdis | |
make BINUTILS=binutils-2.26 all64 | |
# Install hsdis | |
sudo cp build/macosx-amd64/hsdis-amd64.dylib /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/lib/server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment