Bug 927740 (part 4) - Make workers CC on memory-pressure. r=khuey.

--HG--
extra : rebase_source : 372b3de683342634a182d3e782016718c067cead
This commit is contained in:
Nicholas Nethercote 2013-12-02 20:07:02 -08:00
parent f877b263ed
commit 43fa523cda

View File

@ -2246,6 +2246,7 @@ RuntimeService::Observe(nsISupports* aSubject, const char* aTopic,
}
if (!strcmp(aTopic, MEMORY_PRESSURE_OBSERVER_TOPIC)) {
GarbageCollectAllWorkers(/* shrinking = */ true);
CycleCollectAllWorkers();
return NS_OK;
}