Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to get Fastdebug/Debug build of JDK 8 for Windows?

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.

like image 966
Alexei Osipov Avatar asked Nov 14 '16 16:11

Alexei Osipov


People also ask

What is JDK build?

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.

Where can I download jdk8?

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).

How do I download JDK 1.8 on 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.


1 Answers

I can't find any public debug-enabled JDK build for Windows.

I added "fastdebug" binaries that match latest "ojdkbuild" release:

  • direct download: https://github.com/ojdkbuild/ojdkbuild/releases/download/1.8.0.111-1/java-1.8.0-openjdk-fastdebug-1.8.0.111-1.b15.ojdkbuild.windows.x86_64.zip
  • sha256: https://github.com/ojdkbuild/ojdkbuild/releases/download/1.8.0.111-1/java-1.8.0-openjdk-fastdebug-1.8.0.111-1.b15.ojdkbuild.windows.x86_64.zip.sha256

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.

like image 99
alexkasko Avatar answered Sep 30 '22 17:09

alexkasko