[GHC] #15268: Clarify and test the interaction of -with-rtsopts and -rtsopts flags
#15268: Clarify and test the interaction of -with-rtsopts and -rtsopts flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Looking at the user manual it's not clear how do `-with-rtsopts` and `-rtsopts` flags interact. I'd expect `-with-rtsopts` to work even with `-rtsopts=ignoreAll`, but I don't know if this is really the case, and because we don't have a way to print RTS flags (see #15261 for this) it's hard to make sure this works as expected. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15268> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15268: Clarify and test the interaction of -with-rtsopts and -rtsopts flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by AndreasK): Replying to [ticket:15268 osa1]:
I'd expect `-with-rtsopts` to work even with `-rtsopts=ignoreAll`, but I don't know if this is really the case.
This is how it's intended if not it would be a bug.
and because we don't have a way to print RTS flags (see #15261 for this) it's hard to make sure this works as expected.
You can test this works by setting an RTS flags and read it from Haskell. For example set the number of generations and print them from haskell. {{{ import GHC.RTS.Flags (getGCFlags, generations) main :: IO () main = do gcFlags <- getGCFlags putStr . show $ generations gcFlags }}} This is already done in the testsuite by T12870h. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15268#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15268: Clarify and test the interaction of -with-rtsopts and -rtsopts flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: task | Status: patch Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4840 Wiki Page: | -------------------------------------+------------------------------------- Changes (by osa1): * status: new => patch * differential: => Phab:D4840 Comment: Thanks for the info. Updated the diff with a few clarifying sentences about this. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15268#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15268: Clarify and test the interaction of -with-rtsopts and -rtsopts flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: task | Status: patch Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4840 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"97d141989348b2bd399ff7bc92eaf1a502f59952/ghc" 97d1419/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="97d141989348b2bd399ff7bc92eaf1a502f59952" Update user manual sections for -rtsopts and -with-rtsopts - References to -rtsopts updated for the new ignore and ignoreAll options. - Short description of -rtsopts updated. ignore and ignoreAll are now shown in the man page. - Add a few clarifications about -rtsopts and -with-rtsopts interaction. Reviewers: bgamari, AndreasK Reviewed By: AndreasK Subscribers: Phyx, rwbarton, thomie, carter GHC Trac Issues: #15268 Differential Revision: https://phabricator.haskell.org/D4840 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15268#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15268: Clarify and test the interaction of -with-rtsopts and -rtsopts flags -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: task | Status: closed Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.5 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4840 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15268#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC