src/share/vm/gc_implementation/shared/concurrentGCThread.cpp

changeset 3218
db89aa49298f
parent 2964
2a241e764894
child 4037
da91efe96a93
     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();

mercurial