mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1532838 - Set minimum nursery size to 256KB r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D29816 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
d3857d4888
commit
cc7e371160
@ -289,10 +289,11 @@ static const size_t MaxMallocBytes = 128 * 1024 * 1024;
|
||||
/*
|
||||
* JSGC_MIN_NURSERY_BYTES
|
||||
*
|
||||
* 192K is conservative, not too low that root marking dominates. The Limit
|
||||
* should be a multiple of Nursery::SubChunkStep.
|
||||
* With some testing (Bug 1532838) we increased this to 256K from 192K
|
||||
* which improves performance. We should try to reduce this for background
|
||||
* tabs.
|
||||
*/
|
||||
static const size_t GCMinNurseryBytes = 192 * 1024;
|
||||
static const size_t GCMinNurseryBytes = 256 * 1024;
|
||||
|
||||
/* JSGC_ALLOCATION_THRESHOLD_FACTOR */
|
||||
static const float AllocThresholdFactor = 0.9f;
|
||||
|
@ -1481,10 +1481,10 @@ pref("javascript.options.mem.max", -1);
|
||||
|
||||
// JSGC_MIN_NURSERY_BYTES / JSGC_MAX_NURSERY_BYTES
|
||||
#if defined(ANDROID) || defined(XP_IOS)
|
||||
pref("javascript.options.mem.nursery.min_kb", 192);
|
||||
pref("javascript.options.mem.nursery.min_kb", 256);
|
||||
pref("javascript.options.mem.nursery.max_kb", 4096);
|
||||
#else
|
||||
pref("javascript.options.mem.nursery.min_kb", 192);
|
||||
pref("javascript.options.mem.nursery.min_kb", 256);
|
||||
pref("javascript.options.mem.nursery.max_kb", 16384);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user