1. 12 May, 2015 1 commit
    • Javran Cheng's avatar
      Fix fragile T9579 tests · 4b8b4ce1
      Javran Cheng authored
      Fix fragile tests according to comment 13 of #9579 (by @bherzog)
      
      Done by capturing stderr and replace `xx bytes` with `NUM bytes`
      (literal).
      
      Some numbers like `(1 MB)` would still remain, but I think
      it's safe to assume the actual difference in bytes (on different
      architectures) is too small to have an effect on the rounded megabyte
      value.
      
      Test Plan: validate
      
      Reviewers: erikd, austin
      
      Reviewed By: erikd, austin
      
      Subscribers: erikd, bgamari, thomie, bherzog
      
      Differential Revision: https://phabricator.haskell.org/D882
      
      GHC Trac Issues: #9579
      4b8b4ce1
  2. 06 May, 2015 1 commit
    • Javran Cheng's avatar
      rts: add "-no-rtsopts-suggestions" option · 477f514f
      Javran Cheng authored
      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
      477f514f
  3. 17 Apr, 2015 1 commit
    • Javran Cheng's avatar
      Better hints when RTS options not available (Trac #9579) · 51af102e
      Javran Cheng authored
      This patch provides user with a better hint when most RTS options
      are not available (not compiled with `-rtsopts`).
      
      A new field "rtsOptsEnabled" is added into RtsFlags.MiscFlags to
      tell the availablity of RTS options.
      
      Some concerns:
      * Unlike other flag fields in "libraries/base/GHC/RTS/Flags.hsc",
        "RtsOptsEnabled" is defined in "includes/RtsAPI.h" and lacks
        constant macros. Therefore In "GHC.RTS", "RtsOptsEnabled" simply
        derives Enum instance and reads as of type "CInt".
      
      * There are other ways to change RTS options (e.g. `-with-rtsopts`),
        but it might be too verbose to mention.
      
      Test Plan: validate
      
      Reviewers: austin, hvr, thomie, simonmar
      
      Reviewed By: thomie
      
      Subscribers: thomie, rwbarton
      
      Differential Revision: https://phabricator.haskell.org/D767
      
      GHC Trac Issues: #9579
      51af102e