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
Showing
- rts/ProfHeap.c 8 additions, 1 deletionrts/ProfHeap.c
- rts/hooks/OutOfHeap.c 9 additions, 5 deletionsrts/hooks/OutOfHeap.c
- rts/hooks/StackOverflow.c 9 additions, 1 deletionrts/hooks/StackOverflow.c
- testsuite/tests/rts/T9579/Makefile 27 additions, 0 deletionstestsuite/tests/rts/T9579/Makefile
- testsuite/tests/rts/T9579/OutOfHeap.hs 10 additions, 0 deletionstestsuite/tests/rts/T9579/OutOfHeap.hs
- testsuite/tests/rts/T9579/StackOverflow.hs 4 additions, 0 deletionstestsuite/tests/rts/T9579/StackOverflow.hs
- testsuite/tests/rts/T9579/T9579_outofheap_rtsall.stderr 3 additions, 0 deletionstestsuite/tests/rts/T9579/T9579_outofheap_rtsall.stderr
- testsuite/tests/rts/T9579/T9579_outofheap_rtsnone.stderr 3 additions, 0 deletionstestsuite/tests/rts/T9579/T9579_outofheap_rtsnone.stderr
- testsuite/tests/rts/T9579/T9579_outofheap_rtssome.stderr 3 additions, 0 deletionstestsuite/tests/rts/T9579/T9579_outofheap_rtssome.stderr
- testsuite/tests/rts/T9579/T9579_stackoverflow_rtsall.stderr 2 additions, 0 deletionstestsuite/tests/rts/T9579/T9579_stackoverflow_rtsall.stderr
- testsuite/tests/rts/T9579/T9579_stackoverflow_rtsnone.stderr 2 additions, 0 deletionstestsuite/tests/rts/T9579/T9579_stackoverflow_rtsnone.stderr
- testsuite/tests/rts/T9579/T9579_stackoverflow_rtssome.stderr 2 additions, 0 deletionstestsuite/tests/rts/T9579/T9579_stackoverflow_rtssome.stderr
- testsuite/tests/rts/T9579/all.T 29 additions, 0 deletionstestsuite/tests/rts/T9579/all.T
Loading
Please register or sign in to comment