8275917: Some locks shouldn't allow_vm_block

Reviewed-by: dholmes, pchilanomate
This commit is contained in:
Coleen Phillimore 2021-10-28 11:57:21 +00:00
parent 7c996d572c
commit bec977c778
3 changed files with 23 additions and 22 deletions

View file

@ -1061,7 +1061,7 @@ void InstanceKlass::clean_initialization_error_table() {
}
};
MutexLocker ml(ClassInitError_lock);
assert_locked_or_safepoint(ClassInitError_lock);
InitErrorTableCleaner cleaner;
_initialization_error_table.unlink(&cleaner);
}