Bug 1037510 - Part 2: Reduce GGC nursery size to 1MB on workers. r=khuey, a=sledru
authorAndrew McCreight <continuation@gmail.com>
Tue, 29 Jul 2014 15:38:14 -0700
changeset 216237 3cb4eb9b4d3a65ff1a9d496851050ecf3ba89e25
parent 216236 e646f8f8e0271006eda6abbb8596ac160e4cc97e
child 216238 fafb35ae78924b1102ead13ef8f575244e9a7361
push id3857
push userraliiev@mozilla.com
push dateTue, 02 Sep 2014 16:39:23 +0000
treeherdermozilla-beta@5638b907b505 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey, sledru
bugs1037510
milestone33.0a2
Bug 1037510 - Part 2: Reduce GGC nursery size to 1MB on workers. r=khuey, a=sledru
dom/workers/RuntimeService.cpp
--- a/dom/workers/RuntimeService.cpp
+++ b/dom/workers/RuntimeService.cpp
@@ -80,17 +80,17 @@ USING_WORKERS_NAMESPACE
 using mozilla::MutexAutoLock;
 using mozilla::MutexAutoUnlock;
 using mozilla::Preferences;
 
 // The size of the worker runtime heaps in bytes. May be changed via pref.
 #define WORKER_DEFAULT_RUNTIME_HEAPSIZE 32 * 1024 * 1024
 
 // The size of the generational GC nursery for workers, in bytes.
-#define WORKER_DEFAULT_NURSERY_SIZE JS::DefaultNurseryBytes
+#define WORKER_DEFAULT_NURSERY_SIZE 1 * 1024 * 1024
 
 // The size of the worker JS allocation threshold in MB. May be changed via pref.
 #define WORKER_DEFAULT_ALLOCATION_THRESHOLD 30
 
 // The C stack size. We use the same stack size on all platforms for
 // consistency.
 #define WORKER_STACK_SIZE 256 * sizeof(size_t) * 1024