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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Paul Bone 2019-03-06 12:57:04 +00:00
parent 34c7c8f3d5
commit 9a8337af9d

View File

@ -194,7 +194,7 @@ void js::Nursery::enable() {
if (!allocateNextChunk(0, lock)) {
return;
}
capacity_ = NurseryChunkUsableSize;
capacity_ = SubChunkLimit;
}
setCurrentChunk(0, true);