8203694: Add a safepoint-aware Semaphore - part 2
authorstefank
Wed, 23 May 2018 09:42:42 +0200
changeset 50232 3c6dc4b291cd
parent 50231 10b14c9ee78d
child 50233 48d4abe945f1
8203694: Add a safepoint-aware Semaphore - part 2 Reviewed-by: dholmes, pliden
src/hotspot/share/runtime/semaphore.hpp
src/hotspot/share/runtime/semaphore.inline.hpp
--- a/src/hotspot/share/runtime/semaphore.hpp	Thu May 17 18:09:19 2018 +0200
+++ b/src/hotspot/share/runtime/semaphore.hpp	Wed May 23 09:42:42 2018 +0200
@@ -57,7 +57,6 @@
 
   bool trywait()              { return _impl.trywait(); }
 
-  void wait_with_safepoint_check();
   void wait_with_safepoint_check(JavaThread* thread);
 };
 
--- a/src/hotspot/share/runtime/semaphore.inline.hpp	Thu May 17 18:09:19 2018 +0200
+++ b/src/hotspot/share/runtime/semaphore.inline.hpp	Wed May 23 09:42:42 2018 +0200
@@ -38,14 +38,4 @@
   _impl.wait();
 }
 
-inline void Semaphore::wait_with_safepoint_check() {
-  Thread* thread = Thread::current();
-  if (thread->is_Java_thread()) {
-    wait_with_safepoint_check(static_cast<JavaThread*>(thread));
-  } else {
-    // Wait for value
-    _impl.wait();
-  }
-}
-
 #endif // SHARE_VM_RUNTIME_SEMAPHORE_INLINE_HPP