diff --git a/src/hotspot/share/prims/methodHandles.cpp b/src/hotspot/share/prims/methodHandles.cpp index 2d97f49..5e8fa0b 100644 --- a/src/hotspot/share/prims/methodHandles.cpp +++ b/src/hotspot/share/prims/methodHandles.cpp @@ -1086,8 +1086,6 @@ void MethodHandles::remove_dependent_nmethod(oop call_site, nmethod* nm) { } void MethodHandles::clean_dependency_context(oop call_site) { - assert_locked_or_safepoint(CodeCache_lock); - oop context = java_lang_invoke_CallSite::context_no_keepalive(call_site); DependencyContext deps = java_lang_invoke_MethodHandleNatives_CallSiteContext::vmdependencies(context); deps.clean_unloading_dependents();