diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-06-26 16:27:23 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-06-26 16:27:23 -0400 |
commit | 4bd4f561d79de4d056571eca61a5249a5091c985 (patch) | |
tree | 09c894b4b2c89f6201a7345d7e21db8eab55b640 /rts/RtsFlags.c | |
parent | 904255eb9b537103898fb5f6b73df9b53ca7fd93 (diff) | |
download | haskell-4bd4f561d79de4d056571eca61a5249a5091c985.tar.gz |
rts: Always collect stats
It seems that 12ad4d417b89462ba8e19a3c7772a931b3a93f0e enabled
collection by default as its needs stats.allocated_bytes to determine
whether the program has exceeded its grace limit.
However, enabling stats also enables some potentially expensive times
checks. In general GC statistics should be cheap to compute (relative
to the GC itself), so now we always compute them. This allows us to once
again disable giveStats by default.
Fixes #13864.
Reviewers: simonmar, austin, erikd
Reviewed By: simonmar
Subscribers: rwbarton, thomie
GHC Trac Issues: #13864
Differential Revision: https://phabricator.haskell.org/D3669
Diffstat (limited to 'rts/RtsFlags.c')
-rw-r--r-- | rts/RtsFlags.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index 73635cf456..7b10d2a67d 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -130,7 +130,7 @@ void initRtsFlagsDefaults(void) maxStkSize = 8 * 1024 * 1024; RtsFlags.GcFlags.statsFile = NULL; - RtsFlags.GcFlags.giveStats = COLLECT_GC_STATS; + RtsFlags.GcFlags.giveStats = NO_GC_STATS; RtsFlags.GcFlags.maxStkSize = maxStkSize / sizeof(W_); RtsFlags.GcFlags.initialStkSize = 1024 / sizeof(W_); |