RFR: 8367313: CTW: Execute in AWT headless mode [v2]

Aleksey Shipilev shade at openjdk.org
Mon Sep 15 14:08:57 UTC 2025


> I have been doing CTW parallelization improvements, and noticed that some of the AWT clinits run and initialize graphics stack. This is awkward for a few reasons:
> 
>  1. We might be running on headless environment and these clinits could fail, shrinking the CTW testing scope.
>  2. There are dependencies in graphics stack initialization that break -- in one case in my parallelization tests, I have seen the VM crash due to uninitialized AWT lock, because randomized CTW runner managed to execute clinits in unusual order. Running in headless mode avoids dealing with that path altogether.
> 
> I think we should be running CTW tests in AWT headless mode to begin with. 
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `applications/ctw/modules`

Aleksey Shipilev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'master' into JDK-8367313-ctw-headless-mode
 - Fix

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27187/files
  - new: https://git.openjdk.org/jdk/pull/27187/files/c4684176..75df3054

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27187&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27187&range=00-01

  Stats: 29954 lines in 1034 files changed: 14950 ins; 9185 del; 5819 mod
  Patch: https://git.openjdk.org/jdk/pull/27187.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27187/head:pull/27187

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


More information about the hotspot-compiler-dev mailing list