JDK-8285773 : Replace Algorithms.eatMemory(...) with WB.fullGC() in vmTestbase/gc/gctests/ReferencesGC/ReferencesGC.java
Type:Sub-task
Component:hotspot
Sub-Component:gc
Affected Version:19
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2022-04-28
Updated:2022-04-29
Resolved:2022-04-29
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.
The main problem is that OOME might happen in any Thread causing test failure.
The reference tests provoke OOME only to force reference clearing.
The possible fix is to force it directly with force GC.