Integrated: 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 19:53:13 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

This pull request has now been integrated.

Changeset: a3406a1d
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/a3406a1d8ab4228b06b4f2978f87275093c39468
Stats:     18 lines in 2 files changed: 16 ins; 2 del; 0 mod

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

Reviewed-by: coleenp

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

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


More information about the hotspot-runtime-dev mailing list