changeset 8086:619e7d418a44

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 64bd5b63923c
children 5aaa43d91c73
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	Tue May 24 18:42:01 2016 +0300
+++ b/src/share/vm/classfile/classLoaderData.cpp	Wed May 18 11:06:00 2016 +0200
@@ -318,6 +318,10 @@
     }
     tty->print_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();
 }
 
 oop ClassLoaderData::keep_alive_object() const {