From c096c8f1e45661f6e49ba46b2da583844f4353c3 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 7 Dec 2007 08:35:28 -0700 Subject: [PATCH] only consider gen2 oversized if its capacity exceeds (InitialGen2CapacityInBytes / BytesPerWord) --- src/heap.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/heap.cpp b/src/heap.cpp index 299b27c80e..45f0748c27 100644 --- a/src/heap.cpp +++ b/src/heap.cpp @@ -16,7 +16,7 @@ const unsigned Top = ~static_cast(0); const unsigned InitialGen2CapacityInBytes = 4 * 1024 * 1024; -const bool Verbose = false; +const bool Verbose = true; const bool Verbose2 = false; const bool Debug = false; const bool DebugFixies = false; @@ -606,7 +606,8 @@ initNextGen1(Context* c, unsigned footprint) inline bool oversizedGen2(Context* c) { - return c->gen2.position() < (c->gen2.capacity() / 4); + return c->gen2.capacity() > (InitialGen2CapacityInBytes / BytesPerWord) + and c->gen2.position() < (c->gen2.capacity() / 4); } inline void