At various places in the VM we query basic metaspace statistics (usually reserved+committed+used) by querying the individual values one after the other; this is inherently racy. Therefore we see rare intermittent errors in code which afterwards tests consistency of these values (e.g. JDK-8151460, JDK-8237872).
Provide an API which returns consistent values and use them in these places. Affected are:
- Metaspace Perf Counters (MetaspaceCounters::update_performance_counters())
- NMT reporting (MemSummaryReporter::report_metadata)
and potentially others (see alsoJDK-8251392).
Provide an API which returns consistent values and use them in these places. Affected are:
- Metaspace Perf Counters (MetaspaceCounters::update_performance_counters())
- NMT reporting (MemSummaryReporter::report_metadata)
and potentially others (see also
- duplicates
-
JDK-8251392 Consolidate Metaspace Statistics
- Resolved
-
JDK-8251392 Consolidate Metaspace Statistics
- Resolved
- relates to
-
JDK-8151460 Metaspace counters can have inconsistent values
- Resolved
-
JDK-8237872 runtime/NMT/ThreadedVirtualAllocTestType.java test failure in JDK 15
- Closed
-
JDK-8251392 Consolidate Metaspace Statistics
- Resolved