< prev index next >

src/hotspot/share/gc/shared/vmGCOperations.cpp

Print this page
rev 50605 : Updated patch.

@@ -79,11 +79,12 @@
   }
   return skip;
 }
 
 bool VM_GC_Operation::doit_prologue() {
-  assert(Thread::current()->is_Java_thread(), "just checking");
+  assert(Thread::current()->is_Java_thread() || 
+         Thread::current()->is_ConcurrentGC_thread(), "just checking");
   assert(((_gc_cause != GCCause::_no_gc) &&
           (_gc_cause != GCCause::_no_cause_specified)), "Illegal GCCause");
 
   // To be able to handle a GC the VM initialization needs to be completed.
   if (!is_init_completed()) {

@@ -108,11 +109,12 @@
   return _prologue_succeeded;
 }
 
 
 void VM_GC_Operation::doit_epilogue() {
-  assert(Thread::current()->is_Java_thread(), "just checking");
+  assert(Thread::current()->is_Java_thread() || 
+         Thread::current()->is_ConcurrentGC_thread(), "just checking");
   // Clean up old interpreter OopMap entries that were replaced
   // during the GC thread root traversal.
   OopMapCache::cleanup_old_entries();
   if (Universe::has_reference_pending_list()) {
     Heap_lock->notify_all();
< prev index next >