There was a prior PR that attempted to fix this issue, but it was found that 
[JDK-8280987](https://bugs.openjdk.org/browse/JDK-8280987) was the more 
reasonable cause. The issue was caused by Ubuntu instances having a large 
amount of graphics configurations, hence a large amount of concurrent frames 
being open and tested on at a time. As such, the newly suggested fix was to 
instead break apart the test into batches.

This change creates and disposes of the test frames in batches of 20, up to the 
number of GC's identified. The original problem was recreated when testing on 
Ubuntu 24.04, and I have re-tested this with the updated test on the same 
device, and it passes. When debugging, 140 GC's were identified and all 140 
frames were created and disposed of. Also tested this on macOS 15 and the test 
also passes. CI looks good as well.

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

Commit messages:
 - Initial commit

Changes: https://git.openjdk.org/jdk/pull/28646/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28646&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8360160
  Stats: 86 lines in 1 file changed: 46 ins; 33 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/28646.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28646/head:pull/28646

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

Reply via email to