diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-09-11 12:45:47 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-09-11 12:45:47 +0000 |
commit | 4e1b5ce4d026c1b8344b45d03f8702dbf011db50 (patch) | |
tree | dd5b661fcf77101035ce3e02f8858db367ab9c9c /compiler | |
parent | 2bb3a439c106935d97fae7f7a0b60c21493d1bef (diff) | |
download | haskell-4e1b5ce4d026c1b8344b45d03f8702dbf011db50.tar.gz |
Fix #3408: lengthen the idle GC time to 5s for GHC/GHCi.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser/hschooks.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/parser/hschooks.c b/compiler/parser/hschooks.c index 7b091e84ac..4878021a8b 100644 --- a/compiler/parser/hschooks.c +++ b/compiler/parser/hschooks.c @@ -5,7 +5,6 @@ in instead of the defaults. */ #include "Rts.h" -#include "RtsFlags.h" #include "HsFFI.h" @@ -22,6 +21,10 @@ defaultsHook (void) RtsFlags.GcFlags.maxStkSize = 512*1024*1024 / sizeof(W_); RtsFlags.GcFlags.giveStats = COLLECT_GC_STATS; RtsFlags.GcFlags.statsFile = stderr; + + // See #3408: the default idle GC time of 0.3s is too short on + // Windows where we receive console events once per second or so. + RtsFlags.GcFlags.idleGCDelayTime = 5*1000; } void |