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

Incorrect metaspace statistics after JEP 387 when UseCompressedClassPointers is off

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16, 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      Reproduce:
       - run jdk/jfr/event/gc/heapsummary/TestHeapSummaryEventDefNewSerial.java with -XX:-UseCompressedClassPointers

      For example, here is the incorrect metaspace statistics before the fix:
      ```
      Event:jdk.MetaspaceSummary {
        startTime = 10:35:24.762
        gcId = 3
        when = "Before GC"
        gcThreshold = 21.0 MB
        metaspace = {
          committed = 10.3 MB
          used = 10.2 MB
          reserved = 16.0 MB
        }
        dataSpace = {
          committed = 10.3 MB
          used = 10.2 MB
          reserved = 16.0 MB
        }
        classSpace = {
          committed = 10.3 MB
          used = 10.2 MB
          reserved = 16.0 MB
        }
      }
      ```

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: