1.1 --- a/src/share/vm/gc_implementation/g1/concurrentG1Refine.cpp Thu Mar 03 22:58:46 2011 +0100 1.2 +++ b/src/share/vm/gc_implementation/g1/concurrentG1Refine.cpp Thu Mar 03 11:35:50 2011 +0100 1.3 @@ -373,7 +373,7 @@ 1.4 // RSet updating while within an evacuation pause. 1.5 // In this case worker_i should be the id of a GC worker thread 1.6 assert(SafepointSynchronize::is_at_safepoint(), "not during an evacuation pause"); 1.7 - assert(worker_i < (int) DirtyCardQueueSet::num_par_ids(), "incorrect worker id"); 1.8 + assert(worker_i < (int) (ParallelGCThreads == 0 ? 1 : ParallelGCThreads), "incorrect worker id"); 1.9 into_cset_dcq->enqueue(entry); 1.10 } 1.11 }