Bug 896154 - Don't check per thread data when verifying pre barriers until after worker threads have been paused, r=billm.

This commit is contained in:
Brian Hackett 2013-07-26 16:27:44 -06:00
parent 5e1fa07d48
commit d0a3807459

View File

@ -444,17 +444,16 @@ NextNode(VerifyNode *node)
void
gc::StartVerifyPreBarriers(JSRuntime *rt)
{
if (rt->gcVerifyPreData ||
rt->gcIncrementalState != NO_INCREMENTAL ||
!IsIncrementalGCSafe(rt))
{
if (rt->gcVerifyPreData || rt->gcIncrementalState != NO_INCREMENTAL)
return;
}
MinorGC(rt, JS::gcreason::API);
AutoPrepareForTracing prep(rt);
if (!IsIncrementalGCSafe(rt))
return;
for (GCChunkSet::Range r(rt->gcChunkSet.all()); !r.empty(); r.popFront())
r.front()->bitmap.clear();