8135322: ConstantPool::release_C_heap_structures not run in some circumstances
Reviewed-by: coleenp, sspitsyn
--- 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() {