RFR: 8274033: Some tier-4 CDS EpsilonGC tests throw OOM

Ioi Lam iklam at openjdk.java.net
Wed Sep 22 06:03:23 UTC 2021


Problem:

In Oracle hs-tier4, in order to test the support of archived heap objects in EpsilonGC, we run all test cases under open/test/hotspot/jtreg/runtime/cds with `-Dtest.cds.runtime.options=-XX:+UnlockExperimentalVMOptions,-XX:+UseEpsilonGC`. Some of those tests may create a lot of objects, some of those will eventually become unreferenced. Because EpsilonGC cannot collect garbage, the tests will fail with OOM.

Fix:

Limit the set of tests to be executed by introducing a test group `hotspot_cds_epsilongc`. This reduces the number of tests from 200+ to about 50. The problematic `runtime/cds/appcds/methodHandles` cases are excluded.

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

Commit messages:
 - 8274033: Some tier-4 CDS EpsilonGC tests throw OOM

Changes: https://git.openjdk.java.net/jdk/pull/5626/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5626&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274033
  Stats: 20 lines in 3 files changed: 20 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5626.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5626/head:pull/5626

PR: https://git.openjdk.java.net/jdk/pull/5626


More information about the hotspot-runtime-dev mailing list