changeset 11267:6586b45fe833

8135322: ConstantPool::release_C_heap_structures not run in some circumstances Reviewed-by: coleenp, sspitsyn
author aeriksso
date Wed, 18 May 2016 11:06:00 +0200
parents 51d42ae63fe5
children 67bc9d6f1d94
files src/share/vm/classfile/classLoaderData.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classLoaderData.cpp	Wed May 18 16:28:42 2016 +0200
+++ b/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() {