Initialise Boehm GC only once

This commit is contained in:
Eelco Dolstra 2013-11-23 20:15:57 +00:00
parent 90dfb37f14
commit 06a8ac96e7
1 changed files with 2 additions and 2 deletions

View File

@ -156,8 +156,8 @@ EvalState::EvalState()
countCalls = getEnv("NIX_COUNT_CALLS", "0") != "0"; countCalls = getEnv("NIX_COUNT_CALLS", "0") != "0";
#if HAVE_BOEHMGC #if HAVE_BOEHMGC
static bool gcInitialised = true; static bool gcInitialised = false;
if (gcInitialised) { if (!gcInitialised) {
/* Set the initial heap size to something fairly big (25% of /* Set the initial heap size to something fairly big (25% of
physical RAM, up to a maximum of 384 MiB) so that in most physical RAM, up to a maximum of 384 MiB) so that in most
cases we don't need to garbage collect at all. (Collection cases we don't need to garbage collect at all. (Collection