Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/concurrentG1Refine.cpp @ 2364:04d1138b4cce
7023747: G1: too strict assert in RefineRecordRefsIntoCSCardTableEntryClosure::do_card_ptr in g1RemSet.cpp
Summary: Made sure that the assert looks at ParallelGCThreads.
Reviewed-by: stefank, tonyp, jwilhelm, johnc
author | brutisso |
---|---|
date | Thu, 03 Mar 2011 11:35:50 +0100 |
parents | c33825b68624 |
children | 02f49b66361a |
comparison
equal
deleted
inserted
replaced
2363:c93aa6caa02f | 2364:04d1138b4cce |
---|---|
371 // The only time we care about recording cards that contain | 371 // The only time we care about recording cards that contain |
372 // references that point into the collection set is during | 372 // references that point into the collection set is during |
373 // RSet updating while within an evacuation pause. | 373 // RSet updating while within an evacuation pause. |
374 // In this case worker_i should be the id of a GC worker thread | 374 // In this case worker_i should be the id of a GC worker thread |
375 assert(SafepointSynchronize::is_at_safepoint(), "not during an evacuation pause"); | 375 assert(SafepointSynchronize::is_at_safepoint(), "not during an evacuation pause"); |
376 assert(worker_i < (int) DirtyCardQueueSet::num_par_ids(), "incorrect worker id"); | 376 assert(worker_i < (int) (ParallelGCThreads == 0 ? 1 : ParallelGCThreads), "incorrect worker id"); |
377 into_cset_dcq->enqueue(entry); | 377 into_cset_dcq->enqueue(entry); |
378 } | 378 } |
379 } | 379 } |
380 } | 380 } |
381 } | 381 } |