This OpenJDK implementation may requires procfs(5) mounted on /proc.
If you have not done it yet, please do the following:
mount -t procfs proc /proc
To make it permanent, you need the following lines in /etc/fstab:
proc /proc procfs rw 0 0
java/openjdk*: Fix possible race after configure
Some setups could fail when building with poudriere bulk with a message
about the configuration was out of date. Since configure is run as part
of the build in any case, we don't need the explicit configure check in
the openjdk build system, so we disable it.
Fix originally proposed by jonc@chen.org.nz.
Since this doen not change the port, only whether it will build or not,
I have not bumped the PORTREVISION for this change.
PR: 294199
Reported by: nxjoseph
Reviewed by: glewis
Approved by: glewis
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56289
java/openjdk21-25: Bootstrap from prebuilt packages
Completes the transition to using prebuilt packages to bootstrap OpenJDK
ports.
PR: 289731
Reviewed by: jrm, fuz (mentor)
Approved by: fuz (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54731
java/openjdk*: Deprecate unmaintained versions
Mark OpenJDK versions no longer maintained by upstream as deprecated,
and for future removal. Keeping LTS versions, as well as the actively
maintained latest versions in the tree.
Reviewed by: bofh (mentor), jrm
Approved by: bofh (mentor)
MFH: 2025Q4
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54176
java/openjdk24: FreeBSD updates and fixes
- Enable and fix demangling C++ symbols in the Servicability Agent for
FreeBSD. This fixes several issues with backtraces and looking up
symbols when debugging or inspecting programs running in the JVM.
- Fix a performance issue when looking up committed memory size and
number of open file handles via the OperatingSystemMXBean interface.
This affected some large ElasticSearch clusters, but potentially also
other large high performance systems.
Reviewed by: emaste, jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52354
java/openjdk24: pass MAKE_JOBS_NUMBER around
Be more verbose during the build to prevent output timeout.
For rationale of this change see the commits in java/openjdk17 of the
last two weeks.
java/openjdk24: set proper ABI on powerpc64
n file included from
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/precompiled/precompiled.hpp:45:
In file included from
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/nmt/memTracker.hpp:30:
In file included from
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/nmt/memoryFileTracker.hpp:34:
In file included from
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/share/runtime/os.inline.hpp:31:
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.inline.hpp:35:10:
error: no member named 'resolve_function_descriptor' in 'os::Bsd'; did you mean
simply 'resolve_function_descriptor'?
35 | return os::Bsd::resolve_function_descriptor(p);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| resolve_function_descriptor
/wrkdirs/usr/ports/java/openjdk24/work/openjdk-jdk-24.0.2-ga-freebsd-1/src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.inline.hpp:34:18:
note: 'resolve_function_descriptor' declared here
34 | inline void* os::resolve_function_descriptor(void* p) {
| ^
1 error generated.
java/openjdk24: Update to version 24.0.2
Updates the OpenJDK to version 24.0.2, including several fixes for
FreeBSD backported from mainline.
Reviewed by: jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51367
openjdk: remove need for fdescfs(5) and probably procfs(5)
Implement getCommittedVirtualMemorySize() directly using sysctl
kern.proc.vmmap
Implement getOpenFileDescriptorCount() directly using sysctl
kern.proc.nfds
Note on openjdk17 use closefrom where possible (note this use case is
only in openjdk 17, 21, 23 and 24)
Remove the message about the use of fdescfs(5) as this is not needed
for sure, keep the information about procfs(5) as I have not analysed
enough the source code to make sure it is not used anywhere else, but
I don't think it is.
java/openjdk18-24: fix printf in configure output
Printf was confused because the argument was used as format string
and contained a %.
The issue is only cosmetical so not bumping port revision.
It is mentioned in the PR that an upstream fix is in openjdk25.
PR: 287053
Approved by: java@
java/openjdk24: Upgrade to version 24.0.1+9.1
Remove src/hotspot/os_cpu/bsd_ppc/os_bsd_ppc.cpp patch; it was
upstreamed.
Reviewed by: emaste, glewis, jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49996