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

NPG: VM Does not unload classes with UseConcMarkSweepGC

XMLWordPrintable

    • gc
    • b04
    • generic
    • generic

        When running a simple app that just loads classes and throws away the class loader the VM invokes a VM_CollectForMetadataAllocation when the metadata usage has increased over a threshold.
        If I'm running with CMS and without setting +CMSClassUnloadingEnabled then the CMS cycles that the VM operation triggers to not result in any classes being unloaded.
        Before NPG this was "solved" by the VM doing a full gc (serial mark sweep) when perm gen was full but currently if +CMSClassUnloadingEnabled is not set then CMS will never be able to unload classes (unless you call System.gc())

              jmasa Jon Masamitsu (Inactive)
              mgerdin Mikael Gerdin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: