Bug 904282 - Don't mark atoms during last GC (r=jonco)

This commit is contained in:
Bill McCloskey
2013-08-14 14:48:40 -07:00
parent bd1bc8e7f2
commit a51fcbb697
2 changed files with 5 additions and 7 deletions

View File

@@ -202,7 +202,7 @@ js::SweepAtoms(JSRuntime *rt)
bool isDying = IsStringAboutToBeFinalized(&atom);
/* Pinned or interned key cannot be finalized. */
JS_ASSERT_IF(entry.isTagged(), !isDying);
JS_ASSERT_IF(rt->hasContexts() && entry.isTagged(), !isDying);
if (isDying)
e.removeFront();