RFR: 8367313: CTW: Execute in AWT headless mode

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


On Wed, 10 Sep 2025 08:11:43 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`

Friendly reminder; @TobiHartmann, maybe?

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

PR Comment: https://git.openjdk.org/jdk/pull/27187#issuecomment-3292351557


More information about the hotspot-compiler-dev mailing list