Enable per-compartment garbage collection (bug 605662, r=gal).
This commit is contained in:
@@ -450,8 +450,8 @@ js_SweepAtomState(JSContext *cx)
|
||||
AtomEntryType entry = e.front();
|
||||
if (AtomEntryFlags(entry) & (ATOM_PINNED | ATOM_INTERNED)) {
|
||||
/* Pinned or interned key cannot be finalized. */
|
||||
JS_ASSERT(!IsAboutToBeFinalized(AtomEntryToKey(entry)));
|
||||
} else if (IsAboutToBeFinalized(AtomEntryToKey(entry))) {
|
||||
JS_ASSERT(!IsAboutToBeFinalized(cx, AtomEntryToKey(entry)));
|
||||
} else if (IsAboutToBeFinalized(cx, AtomEntryToKey(entry))) {
|
||||
e.removeFront();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user