8181170: resolved_references array leaks for RedefineClasses

Clear out resolved_reference from ClassLoaderData::_handles

Reviewed-by: stefank, jiangli, sspitsyn
This commit is contained in:
Coleen Phillimore 2017-08-30 07:18:02 -04:00
parent 897a7b3f67
commit 8330d49736
6 changed files with 37 additions and 4 deletions

View file

@ -364,6 +364,7 @@ class ClassLoaderData : public CHeapObj<mtClass> {
const char* loader_name();
OopHandle add_handle(Handle h);
void remove_handle(OopHandle h);
void init_handle_locked(OopHandle& pd, Handle h); // used for concurrent access to ModuleEntry::_pd field
void add_class(Klass* k, bool publicize = true);
void remove_class(Klass* k);