Integrated: 8367313: CTW: Execute in AWT headless mode
Aleksey Shipilev
shade at openjdk.org
Wed Sep 17 11:39:22 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`
This pull request has now been integrated.
Changeset: 7e738f0d
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7e738f0d906e574706a277fabbc2cc1df6f11f19
Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
8367313: CTW: Execute in AWT headless mode
Reviewed-by: epeter, kvn
-------------
PR: https://git.openjdk.org/jdk/pull/27187
More information about the hotspot-compiler-dev
mailing list