summaryrefslogtreecommitdiff
path: root/ghc/hschooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/hschooks.c')
-rw-r--r--ghc/hschooks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ghc/hschooks.c b/ghc/hschooks.c
index 18679281e0..037d4e18be 100644
--- a/ghc/hschooks.c
+++ b/ghc/hschooks.c
@@ -23,7 +23,11 @@ defaultsHook (void)
// 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.
+#if __GLASGOW_HASKELL__ >= 703
+ RtsFlags.GcFlags.idleGCDelayTime = SecondsToTime(5);
+#else
RtsFlags.GcFlags.idleGCDelayTime = 5*1000;
+#endif
}
void