Bug 1584892 - Use the default max nursery size for workers in the shell r=jonco
authorPaul Bone <pbone@mozilla.com>
Mon, 16 Dec 2019 10:26:27 +0000
changeset 507311 7c86675ec7b24b6e6c7c953196aa18c7b264f076
parent 507310 6a43e72770388d39476245c3dd111e1b1e5ababd
child 507312 f0e49f75b1db2474bfd539b62d2129a9e05d82d9
push id36925
push userapavel@mozilla.com
push dateTue, 17 Dec 2019 10:44:40 +0000
treeherdermozilla-central@83fc8cf83221 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1584892
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1584892 - Use the default max nursery size for workers in the shell r=jonco Differential Revision: https://phabricator.services.mozilla.com/D47871
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -3932,18 +3932,16 @@ static bool ShellBuildId(JS::BuildIdChar
 static void WorkerMain(WorkerInput* input) {
   MOZ_ASSERT(input->parentRuntime);
 
   JSContext* cx = JS_NewContext(8L * 1024L * 1024L, input->parentRuntime);
   if (!cx) {
     return;
   }
 
-  JS_SetGCParameter(cx, JSGC_MAX_NURSERY_BYTES, 2L * 1024L * 1024L);
-
   ShellContext* sc = js_new<ShellContext>(cx);
   if (!sc) {
     return;
   }
 
   auto guard = mozilla::MakeScopeExit([&] {
     CancelOffThreadJobsForContext(cx);
     sc->markObservers.reset();