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

PrintNMTStatistics doesn't work for normal JVM exit

XMLWordPrintable

    • b16

        The PrintNMTStatistics flag doesn't work for normal JVM exit, works for Ctrl-C / sigint though. Turns out that print_memory_usage() is called but when trying to get the snapshot with get_snapshot() we return NULL since NMT is shutting down also.

        Attaching reproducer from Filipp Zhinkin who found this issue, repro with:

        java -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=detail -XX:+PrintNMTStatistics Test 5

          1. Test.java
            0.6 kB
            Christian Tornqvist

              zgu Zhengyu Gu
              ctornqvi Christian Tornqvist
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: