This commit is contained in:
Alejandro Murillo 2014-04-15 15:37:36 -07:00
commit 331d26800c
98 changed files with 1130 additions and 1066 deletions

View file

@ -4185,8 +4185,12 @@ ClassFileParser::~ClassFileParser() {
clear_class_metadata();
// deallocate the klass if already created.
MetadataFactory::free_metadata(_loader_data, _klass);
// deallocate the klass if already created. Don't directly deallocate, but add
// to the deallocate list so that the klass is removed from the CLD::_klasses list
// at a safepoint.
if (_klass != NULL) {
_loader_data->add_to_deallocate_list(_klass);
}
_klass = NULL;
}