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

Avoid keeping class loaders alive when executing ClassLoaderStatsVMOperation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 20
    • 20
    • hotspot
    • b27

      The ClassLoaderStatsVMOperation is run as its own VM operation calculating and printing stats for the present class loaders. Iterating through the class loaders keeps them alive and prior to concurrent class unloading in ZGC this was no problem. With ZGC this can generate issues if the ClassLoaderStatsVMOperation occurs while doing class unloading. Classes that are dead and could be unloaded can wrongfully be kept alive just because there was a statistics operation running at the same time.

            sjohanss Stefan Johansson
            sjohanss Stefan Johansson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: