RFR: 8377949: TestZRelocationSetEvent.java intermittent fails OOME

SendaoYan syan at openjdk.org
Mon Feb 16 06:34:15 UTC 2026


Hi all,

Test jdk/jfr/event/gc/detailed/TestZRelocationSetEvent.java intermittent fails since test report "java.lang.OutOfMemoryError: Java heap space". The test log shows that the 32M max heap memory is not enough to finish the invoke `Events.fromRecording(recording)` -> `RecordingFile.readAllEvents(List)` sometimes.

This PR change the max heap memory to 64M to make test more ronustness. Test intermittent failure probability about 1/50 before this PR; Test run 10k times and all passed after the proposed patch.

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

Commit messages:
 - 8377949: TestZRelocationSetEvent.java intermittent fails OOME

Changes: https://git.openjdk.org/jdk/pull/29732/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29732&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8377949
  Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/29732.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29732/head:pull/29732

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


More information about the hotspot-dev mailing list