I want to get a JDK 8 that was built with debug or fastedebug option to investigate a low-level performance-related problem. To be more specific, I want a JDK 8 64-bit build for Windows that supports -XX:+PrintMethodData
option.
However I can't find any public debug-enabled JDK build for Windows. Is my only option to take OpenJDK and build it myself?
PS: I don't need a production quality JDK. I just want to get more info from JIT.
PS2: Related links:
https://github.com/alexkasko/openjdk-unofficial-builds - OpenJDK. Only JDK 6 and 7. https://github.com/ojdkbuild/ojdkbuild - OpenJDK 8 but no debug versions.
Some distributions provide a JDK (Java Development Kit) and a JRE (Java Runtime Environment) build. A JDK includes everything to compile, package and run Java applications, while a JRE only includes the binaries and libraries to run Java applications.
To download JDK 8, head to Java SE Development Kit 8 Downloads page and choose a download file suitable for your operating system. Oracle JDK 8 is distributed in archives (zip and targ. z) and installers (rpm for Linux, dmg for macOS and exe for Windows).
Sign in using your Oracle account (or create a new one) and the download should start. Once the download is complete, locate the jdk-8u172-windows-x64.exe file and double-click to run the installer. Click Next and on the following screen optionally change the installation location by clicking on the Change... button.
I can't find any public debug-enabled JDK build for Windows.
I added "fastdebug" binaries that match latest "ojdkbuild" release:
Debuginfo there is zipped in .diz
files in jre/bin
and jre/bin/server
directories.
Debug binaries are planned for following "ojdkbuild" builds, but not yet implemented in build scripts, see: https://github.com/ojdkbuild/ojdkbuild/issues/7 , if you'll have any specific requirements about debug symbols - I will appreciate comments there.
Is my only option to take OpenJDK and build it myself?
Building vanilla OpenJDK 8 for Windows is relatively easy, just note that it supports only VS2010 (SDK 7.1) toolchain.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With