# HG changeset patch # User aeriksso # Date 1463562360 -7200 # Node ID 619e7d418a44bd46f2246499b826f455f31ef50d # Parent 64bd5b63923c3f442bffcf7051e275bcdecef517 8135322: ConstantPool::release_C_heap_structures not run in some circumstances Reviewed-by: coleenp, sspitsyn diff -r 64bd5b63923c -r 619e7d418a44 src/share/vm/classfile/classLoaderData.cpp --- 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 {