[commit: ghc] master: rts: add "-no-rtsopts-suggestions" option (477f514)
git at git.haskell.org
git at git.haskell.org
Wed May 6 12:52:57 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/477f514f6ebcf783810da93e2191e4b6ea65559b/ghc
>---------------------------------------------------------------
commit 477f514f6ebcf783810da93e2191e4b6ea65559b
Author: Javran Cheng <Javran.c at gmail.com>
Date: Wed May 6 07:47:20 2015 -0500
rts: add "-no-rtsopts-suggestions" option
Depends on D767
Setting this flag prevents RTS from giving RTS suggestions like "Use
`+RTS -Ksize -RTS' to increase it."
According to the comment @rwbarton made in #9579, sometimes "+RTS"
suggestions don't make sense (e.g. when the program is precompiled and
installed through package managers), we can encourage people to
distribute binaries with either "-no-rtsopts-suggestions" or "-rtsopts".
Reviewed By: erikd, austin
Differential Revision: https://phabricator.haskell.org/D809
GHC Trac Issues: #9579
>---------------------------------------------------------------
477f514f6ebcf783810da93e2191e4b6ea65559b
compiler/main/DriverPipeline.hs | 4 ++
compiler/main/DynFlags.hs | 4 ++
docs/users_guide/flags.xml | 8 +++
docs/users_guide/phases.xml | 21 ++++++++
includes/RtsAPI.h | 3 ++
rts/ProfHeap.c | 14 ++---
rts/RtsFlags.c | 1 +
rts/hooks/OutOfHeap.c | 33 +++++++-----
rts/hooks/StackOverflow.c | 19 ++++---
testsuite/tests/rts/T5644/T5644.stderr | 4 +-
testsuite/tests/rts/T9579/.gitignore | 2 +
testsuite/tests/rts/T9579/Makefile | 36 ++++++++-----
.../tests/rts/T9579/T9579_outofheap_rtsall.stderr | 4 +-
.../T9579_outofheap_rtsall_no_suggestions.stderr | 2 +
.../tests/rts/T9579/T9579_outofheap_rtsnone.stderr | 4 +-
.../tests/rts/T9579/T9579_outofheap_rtssome.stderr | 4 +-
.../rts/T9579/T9579_stackoverflow_rtsall.stderr | 4 +-
...9579_stackoverflow_rtsall_no_suggestions.stderr | 1 +
.../rts/T9579/T9579_stackoverflow_rtsnone.stderr | 4 +-
.../rts/T9579/T9579_stackoverflow_rtssome.stderr | 4 +-
testsuite/tests/rts/T9579/all.T | 59 +++++++++++++++++-----
testsuite/tests/rts/outofmem.stderr | 2 +-
.../tests/rts/outofmem.stderr-i386-unknown-mingw32 | 2 +-
testsuite/tests/rts/outofmem2.stderr | 4 +-
testsuite/tests/rts/overflow1.stderr | 3 +-
testsuite/tests/rts/overflow2.stderr | 3 +-
testsuite/tests/rts/overflow3.stderr | 3 +-
.../tests/simplCore/should_run/simplrun010.stderr | 4 +-
28 files changed, 182 insertions(+), 74 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 477f514f6ebcf783810da93e2191e4b6ea65559b
More information about the ghc-commits
mailing list