зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1332597 - IsMarked should return true for permanent atoms r=sfink a=abillings
This commit is contained in:
Родитель
52276acb40
Коммит
2853b63008
|
@ -2685,6 +2685,8 @@ IsMarkedInternalCommon(T* thingp)
|
|||
CheckIsMarkedThing(thingp);
|
||||
MOZ_ASSERT(!IsInsideNursery(*thingp));
|
||||
|
||||
if (ThingIsPermanentAtomOrWellKnownSymbol(*thingp))
|
||||
return true;
|
||||
Zone* zone = (*thingp)->asTenured().zoneFromAnyThread();
|
||||
if (!zone->isCollectingFromAnyThread() || zone->isGCFinished())
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче