hotspot/src/share/vm/runtime/mutex.cpp
changeset 18943 7d0ef675e808
parent 14583 d70ee55535f4
child 22234 da823d78ad65
equal deleted inserted replaced
18942:705506c1bf49 18943:7d0ef675e808
  1368                     name()));
  1368                     name()));
  1369     }
  1369     }
  1370     debug_only(if (rank() != Mutex::special) \
  1370     debug_only(if (rank() != Mutex::special) \
  1371       thread->check_for_valid_safepoint_state(false);)
  1371       thread->check_for_valid_safepoint_state(false);)
  1372   }
  1372   }
       
  1373   if (thread->is_Watcher_thread()) {
       
  1374     assert(!WatcherThread::watcher_thread()->has_crash_protection(),
       
  1375         "locking not allowed when crash protection is set");
       
  1376   }
  1373 }
  1377 }
  1374 
  1378 
  1375 void Monitor::check_block_state(Thread *thread) {
  1379 void Monitor::check_block_state(Thread *thread) {
  1376   if (!_allow_vm_block && thread->is_VM_thread()) {
  1380   if (!_allow_vm_block && thread->is_VM_thread()) {
  1377     warning("VM thread blocked on lock");
  1381     warning("VM thread blocked on lock");