mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 975876 - Allow GC in ~AutoMaybeTouchDeadZones to touch dead zones (r=luke)
This commit is contained in:
parent
556e355bad
commit
1369095eb4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user