forked from mirrors/0ad
11dd480b67
SpiderMonkey 98 introduced a size heuristic for the nursery GC region (https://phabricator.services.mozilla.com/D136637). As this heuristic uses a wall-clock time duration, it results in a severe performance regression on slower systems for our use case. This commit adds a workaround to turn off that heuristic, by telling SpiderMonkey that a "page load" (something which doesn't have a meaning in the context of pyrogenesis) is in progress, as that heuristic is disabled for page loads. Co-Authored by: Ralph Sennhauser <ralph.sennhauser@gmail.com> Fixes #7714