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 /testsuite/tests/pmcheck/should_compile/T11195.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 'testsuite/tests/pmcheck/should_compile/T11195.hs')
-rw-r--r-- | testsuite/tests/pmcheck/should_compile/T11195.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/T11195.hs b/testsuite/tests/pmcheck/should_compile/T11195.hs index 593223f5fc..236932e86f 100644 --- a/testsuite/tests/pmcheck/should_compile/T11195.hs +++ b/testsuite/tests/pmcheck/should_compile/T11195.hs @@ -1,4 +1,5 @@ {-# OPTIONS_GHC -Woverlapping-patterns -Wincomplete-patterns #-} +{-# OPTIONS_GHC -fmax-pmcheck-iterations=10000000 #-} module T11195 where |