JDK-8332000 : BasicDirectoryModel/ConcurrentModification.java fails with Out of Memory
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 11.0.25-oracle,17.0.13-oracle
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2024-05-09
  • Updated: 2024-05-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
The javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java test intermittently fails with java.lang.OutOfMemoryError: Java heap space.

An excerpt from the test log:

----------System.out:(111/13332)----------
[171.099s][warning][gc,alloc] Basic L&F File Loading Thread: Retried waiting for GCLocker too often allocating 1661 words
[175.235s][warning][gc,alloc] Basic L&F File Loading Thread: Retried waiting for GCLocker too often allocating 672 words
[175.235s][warning][gc,alloc] Thread-5: Retried waiting for GCLocker too often allocating 333 words
[175.236s][warning][gc,alloc] Basic L&F File Loading Thread: Retried waiting for GCLocker too often allocating 1536 words
[175.236s][warning][gc,alloc] Basic L&F File Loading Thread: Retried waiting for GCLocker too often allocating 1842 words
[175.236s][warning][gc,alloc] Basic L&F File Loading Thread: Retried waiting for GCLocker too often allocating 2890 words
...

----------System.err:(58/4587)----------
Exception in Basic L&F File Loading Thread: class java.lang.OutOfMemoryError: Java heap space
Exception in Basic L&F File Loading Thread: class java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.IllegalArgumentException thrown from the UncaughtExceptionHandler in thread "Basic L&F File Loading Thread"
Exception in Basic L&F File Loading Thread: class java.lang.OutOfMemoryError: Java heap space
Exception in Basic L&F File Loading Thread: class java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.IllegalArgumentException thrown from the UncaughtExceptionHandler in thread "Basic L&F File Loading Thread"
Exception in Thread-6: class java.lang.InterruptedException


This is happening on macOS x64 only at the moment.

The test is run with the following JVM arguments:
-Xmx768m -XX:MaxRAMPercentage=6.25
Comments
A failure found in 11u CI.
27-05-2024