mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
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:
parent
0d1158699a
commit
12058087d6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user