FreeBSD Status Report

Report Entry

Improve OpenJDK on FreeBSD

Contact:
Harald Eilertsen <haraldei@FreeBSD.org>
FreeBSD Java mailing list <freebsd-java@lists.freebsd.org>

The goal of this project is to improve OpenJDK support for FreeBSD/amd64 and FreeBSD/arm64.

Java is an important runtime environment for many high performance, critical enterprise systems. Making sure Java based applications run correctly and efficiently on FreeBSD is important to ensure that FreeBSD will continue to be a viable and attractive platform for enterprises, as well as businesses and organizations of all sizes.

In this quarter the following issues/milestones were reached:

  • Updated OpenJDK 25 port to version 25.0.2.

  • Fixed an issue with building headless OpenJDK 25 variants when no xorg libs were present.

  • Reworked the way OpenJDK ports are bootstrapped on FreeBSD:

  • Fixed and improved Serviceability Agent for FreeBSD in mainline BSD port:

  • Enabled building/installing the Hotspot Disassembler (HSDIS) for FreeBSD. This is needed for some tests for Aarch64 to check that Hotspot generates the correct instruction sequences in various environments. Only supporting the llvm backend for now, though there is no reason to believe the others would not work.

  • Synced ThreadWXEnable implementation with macOS. This enables Hotspot to toggle Write/Execute access to memory segments so that it can generate code to later be executed on Aarch64. Just a minor tweak so we align with the API used by the macOS code, even though our implementation is different.

  • Backported BSD related changes from mainline to OpenJDK 25 and OpenJDK 26 ports.

  • Added new port for OpenJDK 26. Thanks to Greg Lewis and Kurt Miller for helping.

  • Merged first PR into upstream BSD port repo!

Other notes:

  • Started work on updating OpenJDK 25 to version 25.0.3, scheduled for mid April release.

  • I will be talking about the project and my experience working on it at the foss-north conference in Gothenburg, Sweden, on April 28.

Sponsor: The FreeBSD Foundation


Last modified on: April 18, 2026 by Lorenzo Salvadore