mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Bug 920782 - Don't trigger GCs from threads with an exclusive context, r=billm.
This commit is contained in:
parent
4c6afe3535
commit
5c3dfaf4cd
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user