Bug 1532857 - Use SubChunkLimit when re-enabling the nursery r=jonco
authorPaul Bone <pbone@mozilla.com>
Wed, 06 Mar 2019 12:57:04 +0000
changeset 520947 e68932c65a3f21415d615280dad4e77b3deb1118
parent 520946 b32055608807968d77af0b75a85e3c7dc49a692f
child 520948 c4d22c2dae9c1e9578d7ffe08ad10f137d10bb18
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1532857, 1527532
milestone67.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 1532857 - Use SubChunkLimit when re-enabling the nursery r=jonco I should have included this change in Bug 1527532. Differential Revision: https://phabricator.services.mozilla.com/D22241
js/src/gc/Nursery.cpp
--- a/js/src/gc/Nursery.cpp
+++ b/js/src/gc/Nursery.cpp
@@ -189,17 +189,17 @@ void js::Nursery::enable() {
     return;
   }
 
   {
     AutoLockGCBgAlloc lock(runtime());
     if (!allocateNextChunk(0, lock)) {
       return;
     }
-    capacity_ = NurseryChunkUsableSize;
+    capacity_ = SubChunkLimit;
   }
 
   setCurrentChunk(0, true);
   setStartPosition();
 #ifdef JS_GC_ZEAL
   if (runtime()->hasZealMode(ZealMode::GenerationalGC)) {
     enterZealMode();
   }