hotspot/src/share/vm/runtime/thread.cpp
changeset 33105 294e48b4f704
parent 33097 96e348cb0442
child 33107 77bf0d2069a3
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
   878            cur != Threads_lock &&
   878            cur != Threads_lock &&
   879            cur != Compile_lock &&               // Temporary: should not be necessary when we get separate compilation
   879            cur != Compile_lock &&               // Temporary: should not be necessary when we get separate compilation
   880            cur != VMOperationRequest_lock &&
   880            cur != VMOperationRequest_lock &&
   881            cur != VMOperationQueue_lock) ||
   881            cur != VMOperationQueue_lock) ||
   882            cur->rank() == Mutex::special) {
   882            cur->rank() == Mutex::special) {
   883         fatal(err_msg("Thread holding lock at safepoint that vm can block on: %s", cur->name()));
   883         fatal("Thread holding lock at safepoint that vm can block on: %s", cur->name());
   884       }
   884       }
   885     }
   885     }
   886   }
   886   }
   887 
   887 
   888   if (GCALotAtAllSafepoints) {
   888   if (GCALotAtAllSafepoints) {
  4101 #ifdef ASSERT
  4101 #ifdef ASSERT
  4102 void Threads::assert_all_threads_claimed() {
  4102 void Threads::assert_all_threads_claimed() {
  4103   ALL_JAVA_THREADS(p) {
  4103   ALL_JAVA_THREADS(p) {
  4104     const int thread_parity = p->oops_do_parity();
  4104     const int thread_parity = p->oops_do_parity();
  4105     assert((thread_parity == _thread_claim_parity),
  4105     assert((thread_parity == _thread_claim_parity),
  4106         err_msg("Thread " PTR_FORMAT " has incorrect parity %d != %d", p2i(p), thread_parity, _thread_claim_parity));
  4106            "Thread " PTR_FORMAT " has incorrect parity %d != %d", p2i(p), thread_parity, _thread_claim_parity);
  4107   }
  4107   }
  4108 }
  4108 }
  4109 #endif // ASSERT
  4109 #endif // ASSERT
  4110 
  4110 
  4111 void Threads::possibly_parallel_oops_do(bool is_par, OopClosure* f, CLDClosure* cld_f, CodeBlobClosure* cf) {
  4111 void Threads::possibly_parallel_oops_do(bool is_par, OopClosure* f, CLDClosure* cld_f, CodeBlobClosure* cf) {