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

This commit is contained in:
Bill McCloskey 2014-02-27 11:56:49 -08:00
parent 556e355bad
commit 1369095eb4

View File

@ -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)