8296472: Remove ObjectLocker around appendToClassPathForInstrumentation call

Reviewed-by: sspitsyn, alanb, dholmes
This commit is contained in:
Coleen Phillimore 2022-11-21 14:16:49 +00:00
parent 08008139cc
commit 5c3345404d

View File

@ -715,9 +715,7 @@ JvmtiEnv::AddToSystemClassLoaderSearch(const char* segment) {
}
delete zip_entry; // no longer needed
// lock the loader
Handle loader = Handle(THREAD, SystemDictionary::java_system_loader());
ObjectLocker ol(loader, THREAD);
Handle loader(THREAD, SystemDictionary::java_system_loader());
// need the path as java.lang.String
Handle path = java_lang_String::create_from_platform_dependent_str(segment, THREAD);