src/share/vm/runtime/mutex.cpp

changeset 5424
5e3b6f79d280
parent 4299
f34d701e952e
child 6198
55fb97c4c58d
equal deleted inserted replaced
5423:c29568b733d2 5424:5e3b6f79d280
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");

mercurial