8135322: ConstantPool::release_C_heap_structures not run in some circumstances

Wed, 18 May 2016 11:06:00 +0200

author
aeriksso
date
Wed, 18 May 2016 11:06:00 +0200
changeset 8436
619e7d418a44
parent 8435
64bd5b63923c
child 8437
5aaa43d91c73

8135322: ConstantPool::release_C_heap_structures not run in some circumstances
Reviewed-by: coleenp, sspitsyn

src/share/vm/classfile/classLoaderData.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/classfile/classLoaderData.cpp	Tue May 24 18:42:01 2016 +0300
     1.2 +++ b/src/share/vm/classfile/classLoaderData.cpp	Wed May 18 11:06:00 2016 +0200
     1.3 @@ -318,6 +318,10 @@
     1.4      }
     1.5      tty->print_cr("]");
     1.6    }
     1.7 +
     1.8 +  // In some rare cases items added to this list will not be freed elsewhere.
     1.9 +  // To keep it simple, just free everything in it here.
    1.10 +  free_deallocate_list();
    1.11  }
    1.12  
    1.13  oop ClassLoaderData::keep_alive_object() const {

mercurial