8261280: Remove THREAD argument from compute_loader_lock_object

Reviewed-by: dcubed
This commit is contained in:
Coleen Phillimore 2021-02-06 16:35:30 +00:00
parent 74d40ab72f
commit 2c3a86f96e
3 changed files with 9 additions and 12 deletions

View file

@ -1036,7 +1036,7 @@ InstanceKlass* SystemDictionaryShared::find_or_load_shared_class(
// Note: currently, find_or_load_shared_class is called only from
// JVM_FindLoadedClass and used for PlatformClassLoader and AppClassLoader,
// which are parallel-capable loaders, so a lock here is NOT taken.
assert(is_parallelCapable(class_loader), "ObjectLocker not required");
assert(compute_loader_lock_object(class_loader) == NULL, "ObjectLocker not required");
{
MutexLocker mu(THREAD, SystemDictionary_lock);
InstanceKlass* check = dictionary->find_class(d_hash, name);