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

Emanuel Peter epeter at openjdk.org
Wed Sep 17 11:32:01 UTC 2025


On Mon, 15 Sep 2025 14:08:57 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> 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

Tests passed, yes :)
Approved!

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

Marked as reviewed by epeter (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27187#pullrequestreview-3233980111


More information about the hotspot-compiler-dev mailing list