[GHC] #9579: Runtime suggests using +RTS when that's not possible

GHC ghc-devs at haskell.org
Fri Apr 17 02:50:51 UTC 2015


#9579: Runtime suggests using +RTS when that's not possible
-------------------------------------+-------------------------------------
        Reporter:  gintas            |                   Owner:  javran
            Type:  bug               |                  Status:  new
        Priority:  low               |               Milestone:  7.12.1
       Component:  Runtime System    |                 Version:  7.9
      Resolution:                    |                Keywords:  newcomer
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:  Phab:D767
-------------------------------------+-------------------------------------

Comment (by Erik de Castro Lopo <erikd@…>):

 In [changeset:"51af102e5c6c56e0987432aa5a21fe10e24090e9/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="51af102e5c6c56e0987432aa5a21fe10e24090e9"
 Better hints when RTS options not available (Trac #9579)

 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
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9579#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list