< prev index next >

src/hotspot/share/runtime/handshake.cpp

Print this page
rev 47556 : Add Thread Local handshakes and thread local polling
rev 47559 : imported patch Assorted-Karen-5

@@ -73,10 +73,13 @@
 
   void set_handshake(JavaThread* target) {
     target->set_handshake_operation(_op);
   }
 
+  // This method returns true for threads completed their operation
+  // and true for threads canceled their operation.
+  // A cancellation can happen if the thread is exiting.
   bool poll_for_completed_thread() { return _op->thread_has_completed(); }
 
   bool handshake_has_timed_out(jlong start_time);
   static void handle_timeout();
 };
< prev index next >