hotspot/src/share/vm/runtime/mutex.cpp
changeset 18943 7d0ef675e808
parent 14583 d70ee55535f4
child 22234 da823d78ad65
--- a/hotspot/src/share/vm/runtime/mutex.cpp	Thu Jul 18 06:47:15 2013 -0400
+++ b/hotspot/src/share/vm/runtime/mutex.cpp	Wed Jul 17 13:48:15 2013 +0200
@@ -1370,6 +1370,10 @@
     debug_only(if (rank() != Mutex::special) \
       thread->check_for_valid_safepoint_state(false);)
   }
+  if (thread->is_Watcher_thread()) {
+    assert(!WatcherThread::watcher_thread()->has_crash_protection(),
+        "locking not allowed when crash protection is set");
+  }
 }
 
 void Monitor::check_block_state(Thread *thread) {