Enable per-compartment garbage collection (bug 605662, r=gal).

This commit is contained in:
Gregor Wagner
2011-01-07 23:44:57 -08:00
parent b6bb87d9ab
commit bff8766269
20 changed files with 470 additions and 162 deletions

View File

@@ -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();
}
}