Commit 1369095e authored by Bill McCloskey's avatar Bill McCloskey
Browse files

Bug 975876 - Allow GC in ~AutoMaybeTouchDeadZones to touch dead zones (r=luke)

parent 556e355b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5523,12 +5523,12 @@ AutoMaybeTouchDeadZones::AutoMaybeTouchDeadZones(JSObject *obj)

AutoMaybeTouchDeadZones::~AutoMaybeTouchDeadZones()
{
    runtime->gcManipulatingDeadZones = manipulatingDeadZones;

    if (inIncremental && runtime->gcObjectsMarkedInDeadZones != markCount) {
        JS::PrepareForFullGC(runtime);
        js::GC(runtime, GC_NORMAL, JS::gcreason::TRANSPLANT);
    }

    runtime->gcManipulatingDeadZones = manipulatingDeadZones;
}

AutoSuppressGC::AutoSuppressGC(ExclusiveContext *cx)