mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
Merge
This commit is contained in:
commit
331d26800c
98 changed files with 1130 additions and 1066 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue