Bug 841801 - Sweep some objects in the background r=billm

This commit is contained in:
Jon Coppeard
2013-02-08 08:40:49 +00:00
parent 20f145f0be
commit 538efaa0d6
4 changed files with 10 additions and 7 deletions

View File

@@ -52,7 +52,7 @@ using mozilla::ArrayLength;
typedef Rooted<PropertyIteratorObject*> RootedPropertyIteratorObject;
static const gc::AllocKind ITERATOR_FINALIZE_KIND = gc::FINALIZE_OBJECT2;
static const gc::AllocKind ITERATOR_FINALIZE_KIND = gc::FINALIZE_OBJECT2_BACKGROUND;
void
NativeIterator::mark(JSTracer *trc)
@@ -839,7 +839,8 @@ Class PropertyIteratorObject::class_ = {
"Iterator",
JSCLASS_IMPLEMENTS_BARRIERS |
JSCLASS_HAS_CACHED_PROTO(JSProto_Iterator) |
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE |
JSCLASS_BACKGROUND_FINALIZE,
JS_PropertyStub, /* addProperty */
JS_PropertyStub, /* delProperty */
JS_PropertyStub, /* getProperty */