< prev index next >

src/share/vm/runtime/thread.hpp

Print this page

        

@@ -1894,10 +1894,13 @@
   // which is updated by calling change_thread_claim_parity().
   //
   // For this to work change_thread_claim_parity() needs to be called
   // exactly once in sequential code before starting parallel tasks
   // that should claim threads.
+  //
+  // New threads get their parity set to 0 and change_thread_claim_parity()
+  // never set the global parity to 0.
   static int thread_claim_parity() { return _thread_claim_parity; }
   static void change_thread_claim_parity();
   static void assert_all_threads_claimed() PRODUCT_RETURN;
 
   // Apply "f->do_oop" to all root oops in all threads.
< prev index next >