mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
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:
parent
5e1fa07d48
commit
d0a3807459
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user