Bug 988486 - Make more GCRuntime state private and add accessors r=terrence
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user