mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 927740 (part 4) - Make workers CC on memory-pressure. r=khuey.
--HG-- extra : rebase_source : 372b3de683342634a182d3e782016718c067cead
This commit is contained in:
parent
f877b263ed
commit
43fa523cda
@ -2246,6 +2246,7 @@ RuntimeService::Observe(nsISupports* aSubject, const char* aTopic,
|
|||||||
}
|
}
|
||||||
if (!strcmp(aTopic, MEMORY_PRESSURE_OBSERVER_TOPIC)) {
|
if (!strcmp(aTopic, MEMORY_PRESSURE_OBSERVER_TOPIC)) {
|
||||||
GarbageCollectAllWorkers(/* shrinking = */ true);
|
GarbageCollectAllWorkers(/* shrinking = */ true);
|
||||||
|
CycleCollectAllWorkers();
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user