Bug 1785162 - Always stall on OOM on Windows in Nightly r=gsvelto

It's suspected that this may induce performance regressions. Do it
anyway, just to find out how bad it is. (But only on Nightly, for now.)

For simplicity's sake, this does not include any additional telemetry;
the decision of whether and what any additional telemetry is needed will
be deferred until we have some feedback from what we've already got.

Differential Revision: https://phabricator.services.mozilla.com/D155301
This commit is contained in:
Ray Kraesig 2022-08-25 19:35:32 +00:00
Родитель 2586cc9ed6
Коммит 709d56796c
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -1389,6 +1389,9 @@ static inline bool ShouldStallAndRetry() {
// on Windows mostly skips this in favor of directly calling ::VirtualAlloc(),
// though, so it's probably not going to matter whether we stall here or not.)
return true;
# elif defined(NIGHTLY_BUILD)
// On Nightly, always stall, for experiment's sake (bug 1785162).
return true;
# else
// In the main process, always stall.
if (GetGeckoProcessType() == GeckoProcessType::GeckoProcessType_Default) {