Bug 888313 - Update generational GC tuning parameters for better EarlyBoyer performance; r=jandem

--HG--
extra : rebase_source : 0da9dfb64a6e63ff3eade490b0f20cc00528a161
This commit is contained in:
Terrence Cole 2013-07-18 12:00:10 -07:00
parent 61dde7e67c
commit ecd92774b9
2 changed files with 3 additions and 3 deletions

View File

@ -655,9 +655,9 @@ js::Nursery::collect(JSRuntime *rt, JS::gcreason::Reason reason)
/* Resize the nursery. */
double promotionRate = trc.tenuredSize / double(allocationEnd() - start());
if (promotionRate > 0.5)
if (promotionRate > 0.05)
growAllocableSpace();
else if (promotionRate < 0.1)
else if (promotionRate < 0.01)
shrinkAllocableSpace();
/* Sweep. */

View File

@ -34,7 +34,7 @@ class BaselineCompiler;
class Nursery
{
public:
const static int NumNurseryChunks = 8;
const static int NumNurseryChunks = 16;
const static int LastNurseryChunk = NumNurseryChunks - 1;
const static size_t Alignment = gc::ChunkSize;
const static size_t NurserySize = gc::ChunkSize * NumNurseryChunks;