From nobody Tue Dec 30 12:41:34 2025 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dgXlL51JTz6Lrrf for ; Tue, 30 Dec 2025 12:41:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgXlL2Vhkz3Pss for ; Tue, 30 Dec 2025 12:41:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767098494; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gy5Hp50CegFTvpomi0iiQtmGrxa75s+pc9P5wIYopA8=; b=g0RHl4h1lWNHpxKVqXzQggwtHYO7WNhgzGKFSdmsnQ3wfJcghMC66jXu1iYVxxigZHV4En Zpm54vg3NEyjEtegE1FaTc9aiMq73fbiIGdadz7x8iF1vK17cRDc+NlWg+228yd4PZnED5 O9+S8fxj0UP9tcvATRh4CKWLzbmpW/3XLYSNIdXXySyKxrZjNxwyTr62PanNmnZaO24bau DaMiQFKqEK32X+YP2yXfhbvszlyBb0WinBZs+Sm9IPOHp46QWbgjr+2rGp0bvvods5Team 4ckQbG6Q0XciIfTJLUTiM0KckESdcdbyPDgrf0CHqP+jTfOyY44E1etrE7JO6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767098494; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gy5Hp50CegFTvpomi0iiQtmGrxa75s+pc9P5wIYopA8=; b=DOS/3X2W0KXAm17XtbElXjhR7ktozMgxTDVlzwPTOHtvhs7B36CS9B0ueZERsK9IEI667M gnukVTTBEVR38WxSVwZUHMVHXNlCE5zBjHYMLwdHSpbZualib0NojuUgddlNzkrlEtWV1G 5ZcEtxhGfqzZDcf2/i4F/59CJ0nnGGA2TPESin2O5gsJ2MjfKg0/eSf2ZceZASSj7sP6+P XvhDghrSJ/DNZmld3Je3jE4yNOlNBrwLBnYwiTRVBrkpAdytd3n0oT3yHlQY0QLlE7XpOn JRx9Od8sLVP2heEZ6hwIJ9EhbGx6bS3Zay2xbphnqX8Q5dKW0ROdHKzvGQW/gQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767098494; a=rsa-sha256; cv=none; b=JFonET63Sm6FNr74bp9pP9JuWW8WABFNR1VmFwbdqUdNcUWLZG3DRfQkVFLRkjqg3+6o/i 7c7Ljz133JQug4u7wWwoKDSeVVguH8vTQ97gSac+TVvWdi6q12iRGO4yBWem/ad8Z17WvS CgwplW743nIQlJwMP68mMZLdlXnP5UapdsE3TA4j8fDCP97Fgezaa4dHVZAtfhv0C38ecq 2cDDPUlDEIAsMRnsWgo/7NWHRwwyrAUDBTBjJCk6al52CFCPO/zoje0D6c8CecoVfY3PyJ +E0C9xy741eI6vHlW/XRelkNyK+MRiEs8g5tp8XGFJkERDbAoLwNMPVAaHuMGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dgXlL24Phz11f8 for ; Tue, 30 Dec 2025 12:41:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3aacd by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 30 Dec 2025 12:41:34 +0000 To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Cc: Harald Eilertsen From: Lorenzo Salvadore Subject: git: 41e2d6fc2a - main - Status/2025Q4/openjdk.adoc: Add report List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: salvadore X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 41e2d6fc2aa5a79979577136d0f791097331a105 Auto-Submitted: auto-generated Date: Tue, 30 Dec 2025 12:41:34 +0000 Message-Id: <6953c87e.3aacd.f2b6583@gitrepo.freebsd.org> The branch main has been updated by salvadore: URL: https://cgit.FreeBSD.org/doc/commit/?id=41e2d6fc2aa5a79979577136d0f791097331a105 commit 41e2d6fc2aa5a79979577136d0f791097331a105 Author: Harald Eilertsen AuthorDate: 2025-12-26 16:50:25 +0000 Commit: Lorenzo Salvadore CommitDate: 2025-12-30 11:48:24 +0000 Status/2025Q4/openjdk.adoc: Add report Pull Request: https://github.com/freebsd/freebsd-doc/pull/585 --- .../en/status/report-2025-10-2025-12/openjdk.adoc | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/website/content/en/status/report-2025-10-2025-12/openjdk.adoc b/website/content/en/status/report-2025-10-2025-12/openjdk.adoc new file mode 100644 index 0000000000..006562e0fe --- /dev/null +++ b/website/content/en/status/report-2025-10-2025-12/openjdk.adoc @@ -0,0 +1,46 @@ +=== Improve OpenJDK on FreeBSD + +Links: + +link:https://freebsdfoundation.org/project/improving-openjdk-on-freebsd/[Project description] URL: https://freebsdfoundation.org/project/improving-openjdk-on-freebsd/[] + +link:https://github.com/freebsd/openjdk[Project repository] URL: https://github.com/freebsd/openjdk[] + +Contact: + +Harald Eilertsen + +FreeBSD Java mailing list + +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: + +* link:https://reviews.freebsd.org/D53326[Released a port] for OpenJDK 25, later link:https://reviews.freebsd.org/D53975[updated to OpenJDK 25.0.1]. + Thanks to Greg Lewis and Kurt Miller for helping. +* Added link:https://kodeknekkeriet.net/en/blog/introducing-flavors-in-openjdk-freebsd/[`headless` and `jre` FLAVORS] to the OpenJDK 25 port. + This enables building and installing only a headless (no GUI) version of the JDK or just the Java Runtime Environment (no compiler or dev tools). + It is also possible to combine these to only install a `headless-jre` variant. + This is useful in server environments, or other resource constrained environments where the full JDK and tools are not necessary. + The plan is to extend these FLAVORS to the remaining OpenJDK ports as well. +* Submitted link:https://bugs.openjdk.org/browse/JDK-8371637[a fix upstream] that fixed invalid memory alignment on systems using `jemalloc`, or other allocators that do not use the link:https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2293.htm[strong alignment interpretation] of the C standard alignment requirements. + This caused problems when allocating small off-heap memory segments using the `java.lang.foreign.Arena` API on FreeBSD. + This fix will be included in OpenJDK 26. +* Deprecated OpenJDK ports link:https://reviews.freebsd.org/D54176[no longer supported] by upstream. + The ports will expire and be removed throughout the first half of 2026, leaving the LTS versions and the latest maintained ports behind. + +Other notes: + +* Spent some time digging into link:https://github.com/battleblow/jdk25u/pull/4[the history of `getrlimitusage(2)` system call] discovering it was available since version 14.2 despite the man page saying it first appeared in version 15. + See also link:https://reviews.freebsd.org/D53320[related review by emaste]. + This was relevant because link:https://www.freebsd.org/status/report-2025-07-2025-09/#_improve_openjdk_on_freebsd[the performance improvements from previous quarter] relies on this system call. + Knowing that it is available for all currently maintained versions of FreeBSD, means we do not need to keep code to fall back to less efficient ways of obtaining the same information. +* Updates made to the Mac OS X implementation of the Hotspot Serviceability Agent debugging facility broke the BSD implementation. + Due to history, these implementations share the same source files and directories despite being somewhat different implementations. + Work link:https://bugs.openjdk.org/browse/JDK-8374372[has been started] on moving the OS X code to it's own implementation, so that we can work on the BSD implementation without having to step on each others toes. +* Work on changing the way we bootstrap OpenJDK builds in the ports system has been resumed. + This work is more relevant again as deprecating unmaintained ports breaks the previous assumption that you could depend on the previous OpenJDK version to build the current version. + The new bootstrapping mechanism must be in place before actually expiring the existing ports. +* I lost access to my Aarch64 test system in the beginning of this quarter, so I have not been able to test as well as I want on that architecture. + This situation is now remedied, and I am in the process of getting the new system set up for building and testing. + +Sponsor: The FreeBSD Foundation