< prev index next >

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

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

@@ -37,15 +37,14 @@
 bool SafepointMechanism::global_poll() {
   return SafepointSynchronize::do_call_back();
 }
 
 bool SafepointMechanism::local_poll(Thread* thread) {
-  // Mutexes can be taken but none JavaThread. These cannot have handshakes
-  // operation but they must stop for safepoints.
   if (thread->is_Java_thread()) {
     return local_poll_armed((JavaThread*)thread);
   } else {
+    // If the poll is on a non-java thread we can only check the global state.
     return global_poll();
   }
 }
 
 bool SafepointMechanism::poll(Thread* thread) {
< prev index next >