8135322: ConstantPool::release_C_heap_structures not run in some circumstances
authoraeriksso
Wed, 18 May 2016 11:06:00 +0200
changeset 38635 e15e221b60a0
parent 38634 176eda5b3359
child 38636 0a04aee4e7a6
8135322: ConstantPool::release_C_heap_structures not run in some circumstances Reviewed-by: coleenp, sspitsyn
hotspot/src/share/vm/classfile/classLoaderData.cpp
--- a/hotspot/src/share/vm/classfile/classLoaderData.cpp	Wed May 18 16:28:42 2016 +0200
+++ b/hotspot/src/share/vm/classfile/classLoaderData.cpp	Wed May 18 11:06:00 2016 +0200
@@ -382,6 +382,10 @@
     }
     log->cr();
   }
+
+  // In some rare cases items added to this list will not be freed elsewhere.
+  // To keep it simple, just free everything in it here.
+  free_deallocate_list();
 }
 
 PackageEntryTable* ClassLoaderData::packages() {