Bug 988486 - Make more GCRuntime state private and add accessors r=terrence

This commit is contained in:
Jon Coppeard
2014-06-16 10:40:44 +01:00
parent 1ec834c99f
commit d843d0e382
15 changed files with 307 additions and 290 deletions

View File

@@ -1427,7 +1427,7 @@ NewObject(ExclusiveContext *cx, types::TypeObject *type_, JSObject *parent, gc::
if (!cx->shouldBeJSContext())
return nullptr;
JSRuntime *rt = cx->asJSContext()->runtime();
rt->gc.incrementalEnabled = false;
rt->gc.disableIncrementalGC();
#ifdef DEBUG
if (rt->gcMode() == JSGC_MODE_INCREMENTAL) {