Bug 1162622 - Check fewer traced things as it's too slow to check all edges; r=sfink

This commit is contained in:
Terrence Cole 2015-05-12 17:50:56 -07:00
parent 9caaa34b3a
commit 95c805cf73

View File

@ -656,6 +656,7 @@ DoMarking(GCMarker* gcmarker, T thing)
if (MustSkipMarking(thing))
return;
CheckTracedThing(gcmarker, thing);
gcmarker->traverse(thing);
// Mark the compartment as live.
@ -788,7 +789,6 @@ template <typename T>
bool
js::GCMarker::mark(T* thing)
{
CheckTracedThing(this, thing);
AssertZoneIsMarking(thing);
MOZ_ASSERT(!IsInsideNursery(gc::TenuredCell::fromPointer(thing)));
return gc::ParticipatesInCC<T>::value