Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266183

Provide an API to get statistics from metaspace in a consistent manner

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 17
    • hotspot
    • None

      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 also JDK-8251392).

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: