JDK-8320205 : some GC stress tests fail due to OOM in EA materialization
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 22
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • Submitted: 2023-11-15
  • Updated: 2024-10-22
  • Resolved: 2024-04-22
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
tbdResolved
Related Reports
Relates :  
Relates :  
Description
Some GC stress tests attempt to capture OOM to detect success of the test but it's not always possible to do this in the presence of escape analyzed objects.  Deoptimization rematerializes objects before resuming in the interpreter but this can be outside of any catch blocks that protected the original allocation. Graal in particular, is aggressive about escape analysis and so some tests fail intermittently if the OOM occurs at a surprising place. These tests either need to disable escape analysis or should have broader catch blocks.  ZGC in particular seems to have less headroom for the allocations as the failure is more common with it.
Comments
ILW = Tests fail due to unexpected OOME during rematerialization of scalar replaced objects (test bug), GC stress tests with Graal as JIT, no workaround but disable (P)EA or compilation of affected method = MLH = P4
16-11-2023