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.

To download the current JDK release, click here.
JDK 19
19 masterFixed
Description
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.
Comments
Changeset: 95d38bbd Author: Leonid Mesnik <lmesnik@openjdk.org> Date: 2022-04-29 19:33:41 +0000 URL: https://git.openjdk.java.net/jdk/commit/95d38bbd6b33a965b2312fd9409c6879ca2772ab
29-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8440 Date: 2022-04-28 02:23:47 +0000
28-04-2022