about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-23T20·15+0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-23T20·15+0000
commit06a8ac96e79547c092debfe3b93d78bcb862edc2 (patch)
treef0f1c5cbfa86364b1c64c6258e1d3ee220624c76
parent90dfb37f147941e5edf262c27e269cdfd1e8dcfb (diff)
Initialise Boehm GC only once
-rw-r--r--src/libexpr/eval.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 3db4bb66f435..e4a0d7fd2b3e 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -156,8 +156,8 @@ EvalState::EvalState()
     countCalls = getEnv("NIX_COUNT_CALLS", "0") != "0";
 
 #if HAVE_BOEHMGC
-    static bool gcInitialised = true;
-    if (gcInitialised) {
+    static bool gcInitialised = false;
+    if (!gcInitialised) {
         /* Set the initial heap size to something fairly big (25% of
            physical RAM, up to a maximum of 384 MiB) so that in most
            cases we don't need to garbage collect at all.  (Collection