src/hotspot/share/runtime/handshake.hpp
changeset 52341 2b58b8e1d28f
parent 50626 9fdfe5ca0e5e
child 53244 9807daeb47c4
--- a/src/hotspot/share/runtime/handshake.hpp	Wed Oct 31 09:09:23 2018 +0100
+++ b/src/hotspot/share/runtime/handshake.hpp	Wed Oct 31 08:09:45 2018 +0100
@@ -60,7 +60,6 @@
   bool vmthread_can_process_handshake(JavaThread* target);
 
   void clear_handshake(JavaThread* thread);
-  void cancel_inner(JavaThread* thread);
 
   void process_self_inner(JavaThread* thread);
 public:
@@ -72,19 +71,13 @@
     return _operation != NULL;
   }
 
-  void cancel(JavaThread* thread) {
-    if (!_thread_in_process_handshake) {
-      FlagSetting fs(_thread_in_process_handshake, true);
-      cancel_inner(thread);
-    }
-  }
-
   void process_by_self(JavaThread* thread) {
     if (!_thread_in_process_handshake) {
       FlagSetting fs(_thread_in_process_handshake, true);
       process_self_inner(thread);
     }
   }
+
   void process_by_vmthread(JavaThread* target);
 };