diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2016-04-10 19:13:16 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-04-10 22:58:27 +0200 |
commit | d2e05c6bd0834421b0c48b3c4287fbe6ee889966 (patch) | |
tree | 7aafdfa45ac21ce4772ad7a7e20d87bbb7fc152e /compiler/main/DynFlags.hs | |
parent | 2f82da761defba2cfdc55ca08d774ca7e1240463 (diff) | |
download | haskell-d2e05c6bd0834421b0c48b3c4287fbe6ee889966.tar.gz |
Reduce default for -fmax-pmcheck-iterations from 1e7 to 2e6
The commit 28f951edfe50ea5182065144340061ec326781f5 introduced the
`-fmax-pmcheck-iterations` flag and set the default limit to 1e7
iterations.
However, this value is still high enough that it can result GHC to
exhibit memory spikes beyond 1 GiB of RAM usage (heap profile showed
several `(:)`s, as well as `THUNK_2_0`, and `PmCon` during the memory
spikes)
A value of 2e6 seems to be a safer upper bound which still manages to
let the checker not run into the limit in most cases.
Test Plan: Validate, try building a few Hackage packages
Reviewers: austin, gkaracha, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2095
Diffstat (limited to 'compiler/main/DynFlags.hs')
-rw-r--r-- | compiler/main/DynFlags.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 9e064451ef..a79bb3a9b3 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -1445,7 +1445,7 @@ defaultDynFlags mySettings = debugLevel = 0, simplPhases = 2, maxSimplIterations = 4, - maxPmCheckIterations = 10000000, + maxPmCheckIterations = 2000000, ruleCheck = Nothing, maxRelevantBinds = Just 6, simplTickFactor = 100, |