RFR: 8346719: Add relaunchers to the static JDK image for missing executables [v2]

Magnus Ihse Bursie ihse at openjdk.org
Fri Jun 27 16:10:58 UTC 2025


> In the static JDK image, a single humongous java executable is generated, and no other launcher, such as javac. This makes it impossible to run our jtreg tests, which assume these are present.
> 
> The solution is fortunately simply: we just need to add a bunch of trivial launchers, which are thin wrappers that execute the main java binary, with the proper arguments. This will result in the same behavior as the normal dynamic launchers, only that we will need to take the detour of launching another process instead of calling directly into the JLI library.

Magnus Ihse Bursie has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 13 commits:

 - Merge branch 'master' into static-relaunchers
 - Improve windows runtime lib copying
 - Fix linux launcher to allow relaunching
 - Copy Windows runtime libs
 - Merge branch 'master' into static-relaunchers
 - Merge branch 'master' into static-relaunchers
 - Add cast for Windows
 - Merge branch 'master' into static-relaunchers
 - Specify how to build jexec
 - Revert "8352766: Problemlist hotspot tier1 tests requiring tools that are not included in static JDK"
   
   This reverts commit 53926742c02480def6a42683fcaf284b99bcb0a1.
 - ... and 3 more: https://git.openjdk.org/jdk/compare/12196baf...11352678

-------------

Changes: https://git.openjdk.org/jdk/pull/24380/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24380&range=01
  Stats: 713 lines in 11 files changed: 567 ins; 115 del; 31 mod
  Patch: https://git.openjdk.org/jdk/pull/24380.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24380/head:pull/24380

PR: https://git.openjdk.org/jdk/pull/24380


More information about the build-dev mailing list