mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 647055 - Fix MarkIfGCThingWord. r=igor
This commit is contained in:
parent
546e09139d
commit
7cdffe12ac
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user