Bug 1568740 - (part 5) Rename a variable r=jonco

The new variable, 'newMinNurseryBytes' is more in-line with the other
'newMaxNurseryBytes'.

Differential Revision: https://phabricator.services.mozilla.com/D39284

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Paul Bone 2019-07-31 04:07:32 +00:00
parent 0d1158699a
commit 12058087d6

View File

@ -1431,13 +1431,13 @@ bool js::Nursery::maybeResizeExact(JS::GCReason reason) {
return true;
}
const size_t minNurseryBytes = roundSize(tunables().gcMinNurseryBytes());
MOZ_ASSERT(minNurseryBytes >= ArenaSize);
const size_t newMinNurseryBytes = roundSize(tunables().gcMinNurseryBytes());
MOZ_ASSERT(newMinNurseryBytes >= ArenaSize);
if (minNurseryBytes > capacity()) {
if (newMinNurseryBytes > capacity()) {
// the configured minimum nursery size is changing, so grow the nursery.
MOZ_ASSERT(minNurseryBytes <= roundSize(tunables().gcMaxNurseryBytes()));
growAllocableSpace(minNurseryBytes);
MOZ_ASSERT(newMinNurseryBytes <= roundSize(tunables().gcMaxNurseryBytes()));
growAllocableSpace(newMinNurseryBytes);
return true;
}