mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8247470: Fix CHeap GrowableArray NMT accounting
Reviewed-by: coleenp, tschatzl, kbarrett
This commit is contained in:
parent
0a108f9ef2
commit
77bdc30650
67 changed files with 144 additions and 158 deletions
|
@ -804,7 +804,7 @@ void ClassLoaderData::add_to_deallocate_list(Metadata* m) {
|
|||
if (!m->is_shared()) {
|
||||
MutexLocker ml(metaspace_lock(), Mutex::_no_safepoint_check_flag);
|
||||
if (_deallocate_list == NULL) {
|
||||
_deallocate_list = new (ResourceObj::C_HEAP, mtClass) GrowableArray<Metadata*>(100, true);
|
||||
_deallocate_list = new (ResourceObj::C_HEAP, mtClass) GrowableArray<Metadata*>(100, mtClass);
|
||||
}
|
||||
_deallocate_list->append_if_missing(m);
|
||||
log_debug(class, loader, data)("deallocate added for %s", m->print_value_string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue