Skip to content

Instantly share code, notes, and snippets.

Forked from zajacmp3/
Last active October 21, 2019 21:16
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Build hsdis for JDK 1.8 on Debian/Ubuntu
sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev g++-multilib mercurial texinfo
hg clone
cd jdk8u
hg update jdk8u92-b14
sed -ri 's/subrepos="[^"]+"/subrepos="hotspot"/' ./make/scripts/ # only get hotspot
sed -ri 's/subrepos="[^"]+"/subrepos="hotspot"/' ./common/bin/ # only get hotspot
chmod +x ./; ./
cd hotspot/src/share/tools/hsdis
tar -xzf binutils-2.29.tar.gz
sed -ri 's/development=.*/development=false/' ./binutils-2.29/bfd/ # set development to false
make BINUTILS=binutils-2.29 ARCH=amd64
sudo cp build/linux-amd64/ /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment