< prev index next >

src/share/vm/gc/shenandoah/shenandoahHeap.cpp

Print this page
rev 12670 : imported patch fixes.patch

@@ -1884,10 +1884,11 @@
   collector_policy()->set_should_clear_all_soft_refs(true);
   concurrent_thread()->try_set_full_gc();
   cancel_concgc(_oom_evacuation);
 
   if ((! Thread::current()->is_GC_task_thread()) && (! Thread::current()->is_ConcurrentGC_thread())) {
+    assert(! Threads_lock->owned_by_self(), "must not hold Threads_lock here");
     log_warning(gc)("OOM during evacuation. Let Java thread wait until evacuation finishes.");
     while (_evacuation_in_progress) { // wait.
       Thread::current()->_ParkEvent->park(1);
     }
   }
< prev index next >