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

release_C_heap_structures is never called for anonymous classes.

XMLWordPrintable

    • b31


        The InstanceKlass::release_C_heap_structures() is called when classes are unloaded by walking the system dictionary. In JDK7, anonymous classes are simply cleaned up by the garbage collector and are not in the system dictionary so any C heap structures associated with them are never reclaimed.

        In jdk8, we can clean out these structures when we unload the ClassLoaderData object that holds their memory. We should move the InstanceKlass::release_C_heap_structures() function to the CLD unloading.

              coleenp Coleen Phillimore
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: