RFR: JDK-8277092: TestMetaspaceAllocationMT2.java#ndebug-default fails with "RuntimeException: Committed seems high: NNNN expected at most MMMM"

Thomas Stuefe stuefe at openjdk.java.net
Fri Nov 19 06:02:50 UTC 2021


Test error after [JDK-8276731](https://bugs.openjdk.java.net/browse/JDK-8276731). That patch changed the way metaspace chunks are uncommitted: Before, chunks were uncommitted when being returned to the system; now they are uncommitted only if `Metaspace::purge()` is explicitly called. 

In real VM life, that makes no difference since these two things happen back to back in `CLDG::purge()`. 

But these metaspace tests isolate metaspace arenas and test them as individual units, without involving GC or CLDG, and therefore we need to purge manually. Otherwise, the commit numbers are unpredictable and may be larger than expected.

Tests: manual x64+x86, GHAs (one unrelated error in hs compiler tests on linux x64), SAP nightlies

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

Commit messages:
 - JDK-8277092-TestMetaspaceAllocationMT2-java-ndebug-default-Committed-seems-high-NNNN-expected-at-most-MMMM

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

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


More information about the hotspot-runtime-dev mailing list