complie openjdk8 step
OS: ubuntu 14.04
complie support jdk: jdk1.7
complie support lib: libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev libcups2-dev libfreetype6-dev libasound2-dev
- download and install jdk1.7
- install lib script
sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev libcups2-dev libfreetype6-dev libasound2-dev
create file builld.sh and write complie script
bash ./configure --with-target-bits=64 --with-boot-jdk=/usr/local/tools/jdk1.7.0_80/ --with-debug-level=slowdebug --enable-debug-symbols ZIP_DEBUGINFO_FILES=0
make all ZIP_DEBUGINFO_FILES=0 DISABLE_HOTSPOT_OS_VERSION_CHECK=OK #Bash
exec ./build.sh start compling...
./build.sh
new file hello.java
cd build/linux-x86_64-normal-server-slowdebug/jdk/bin
./javac hello.java
./java hello
hello world
setting env
export LD_LIBRARY_PATH=/root/workspace/openjdk/build/linux-x86_64-normal-server-slowdebug/hotspot/linux_amd64_compiler2/debug
gdb java
cd build/linux-x86_64-normal-server-slowdebug/jdk/bin
gdb --args ./java hello
b thread.cpp:219
r
create .gdbinit file and write follow content on directory /{user}/.gdbinit
handle SIGSEGV pass noprint nostop
handle SIGUSR1 pass noprint nostop
handle SIGUSR2 pass noprint nostop
configure parameters ./configure --with-target-bits=64 --with-debug-level=slowdebug --disable-warnings-as-errors --with-native-debug-symbols=internal --with-boot-jdk=/usr/lib/jvm/java-8-openjdk-amd64
make clean make all