Relates :
|
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.
|