Skip to content


8296472: Remove ObjectLocker around appendToClassPathForInstrumentati…
Browse files Browse the repository at this point in the history
…on call

Reviewed-by: sspitsyn, alanb, dholmes
  • Loading branch information
coleenp committed Nov 21, 2022
1 parent 0800813 commit 5c33454
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hotspot/share/prims/jvmtiEnv.cpp
Expand Up @@ -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);
Expand Down

1 comment on commit 5c33454

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.