зеркало из https://github.com/mozilla/pjs.git
Bug 647055 - Fix MarkIfGCThingWord. r=igor
This commit is contained in:
Родитель
8853e5b880
Коммит
3622cffc11
|
@ -218,7 +218,7 @@ Arena<T>::mark(T *thing, JSTracer *trc)
|
|||
if (alignedThing > &t.things[ThingsPerArena-1] || alignedThing < &t.things[0])
|
||||
return CGCT_NOTARENA;
|
||||
|
||||
if (!aheader.compartment || inFreeList(alignedThing))
|
||||
if (inFreeList(alignedThing))
|
||||
return CGCT_NOTLIVE;
|
||||
|
||||
JS_ASSERT(sizeof(T) == aheader.thingSize);
|
||||
|
@ -644,6 +644,9 @@ MarkIfGCThingWord(JSTracer *trc, jsuword w, uint32 &thingKind)
|
|||
|
||||
ArenaHeader *aheader = cell->arena()->header();
|
||||
|
||||
if (!aheader->compartment)
|
||||
return CGCT_NOTLIVE;
|
||||
|
||||
ConservativeGCTest test;
|
||||
thingKind = aheader->thingKind;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче