Bug 920782 - Don't trigger GCs from threads with an exclusive context, r=billm.

This commit is contained in:
Brian Hackett 2013-09-27 10:44:25 -06:00
parent 4c6afe3535
commit 5c3dfaf4cd

View File

@ -1959,6 +1959,10 @@ js::TriggerZoneGC(Zone *zone, JS::gcreason::Reason reason)
return;
}
/* Zones in use by a thread with an exclusive context can't be collected. */
if (zone->usedByExclusiveThread)
return;
JSRuntime *rt = zone->runtimeFromMainThread();
/* Don't trigger GCs when allocating under the operation callback lock. */