RFR: JDK-8277092: TestMetaspaceAllocationMT2.java#ndebug-default fails with "RuntimeException: Committed seems high: NNNN expected at most MMMM"
Coleen Phillimore
coleenp at openjdk.java.net
Fri Nov 19 19:11:07 UTC 2021
On Thu, 18 Nov 2021 10:50:14 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> 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
Ok, I found where it calls ChunkManager::purge. This looks good. I think as a test fix, it can be integrated as "trivial".
-------------
Marked as reviewed by coleenp (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/6451
More information about the hotspot-runtime-dev
mailing list