JDK-8011803 : release_C_heap_structures is never called for anonymous classes.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs25
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-04-09
  • Updated: 2014-06-26
  • Resolved: 2013-04-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 Other
8Fixed hs25Fixed
Related Reports
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.
Need to fill in Affected Version