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 209316 e61371be0f388ea4ef46cb8dec12a191a54594bc
parent 209315 84bf8e0aaecbd2543e86d82ee61c2037b63dc62b
child 209317 932afd80c5a09cbb541f0d012fcdbf3d0934ce1c
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey, sledru
bugs1037510
milestone32.0
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
@@ -71,17 +71,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