1.1 --- a/src/share/vm/gc_implementation/shared/concurrentGCThread.cpp Fri Oct 21 12:42:42 2011 -0400 1.2 +++ b/src/share/vm/gc_implementation/shared/concurrentGCThread.cpp Thu Oct 20 12:06:20 2011 -0700 1.3 @@ -224,6 +224,8 @@ 1.4 MutexLockerEx x(&_monitor, Mutex::_no_safepoint_check_flag); 1.5 assert(_buffer == empty, "Should be empty"); 1.6 assert(msg != empty, "empty message"); 1.7 + assert(!Heap_lock->owned_by_self(), "Heap_lock owned by requesting thread"); 1.8 + 1.9 _buffer = msg; 1.10 while (_buffer != empty) { 1.11 _monitor.notify();