< prev index next >

src/hotspot/share/runtime/threadSMR.inline.hpp

Print this page

        

@@ -80,12 +80,12 @@
 
 inline ThreadsList* ThreadsSMRSupport::get_java_thread_list() {
   return (ThreadsList*)Atomic::load_acquire(&_java_thread_list);
 }
 
-inline bool ThreadsSMRSupport::is_a_protected_JavaThread_with_lock(JavaThread *thread, bool skiplock) {
-  MutexLocker ml(Threads_lock->owned_by_self() || skiplock ? NULL : Threads_lock);
+inline bool ThreadsSMRSupport::is_a_protected_JavaThread_with_lock(JavaThread *thread) {
+  MutexLocker ml(Threads_lock->owned_by_self() ? NULL : Threads_lock);
   return is_a_protected_JavaThread(thread);
 }
 
 inline void ThreadsSMRSupport::update_tlh_stats(uint millis) {
   ThreadsSMRSupport::inc_tlh_cnt();
< prev index next >