From 94404b7f890072e957936600567ab696947ea094 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 2 Feb 2008 13:34:29 -0700 Subject: [PATCH] remove unused major collection interval code --- src/heap.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/heap.cpp b/src/heap.cpp index 837a04d2a4..ea067585ea 100644 --- a/src/heap.cpp +++ b/src/heap.cpp @@ -17,10 +17,6 @@ const unsigned Top = ~static_cast(0); const unsigned InitialGen2CapacityInBytes = 4 * 1024 * 1024; const unsigned InitialTenuredFixieCeilingInBytes = 4 * 1024 * 1024; -// do a major collection at least every N collections (zero means -// infinity) -const unsigned MajorCollectionInterval = 0; - const unsigned LowMemoryPaddingInBytes = 1024 * 1024; const bool Verbose = false; @@ -535,8 +531,6 @@ class Context { markedFixies(0), visitedFixies(0), - majorCollectionCountdown(0), - lastCollectionTime(system->now()), totalCollectionTime(0), totalTime(0) @@ -606,8 +600,6 @@ class Context { Fixie* markedFixies; Fixie* visitedFixies; - unsigned majorCollectionCountdown; - int64_t lastCollectionTime; int64_t totalCollectionTime; int64_t totalTime; @@ -1541,17 +1533,6 @@ collect(Context* c) } c->mode = Heap::MajorCollection; - } else if (c->mode == Heap::MinorCollection - and c->majorCollectionCountdown) - { - -- c->majorCollectionCountdown; - if (c->majorCollectionCountdown == 0) { - if (Verbose) { - fprintf(stderr, "countdown causes "); - } - - c->mode = Heap::MajorCollection; - } } int64_t then; @@ -1587,7 +1568,6 @@ collect(Context* c) initNextGen1(c); if (c->mode == Heap::MajorCollection) { - c->majorCollectionCountdown = MajorCollectionInterval; initNextGen2(c); }