[commit: ghc] ghc-8.4: rts: Don't default to single capability when profiled (ce8d8c0)

git at git.haskell.org git at git.haskell.org
Mon Dec 11 20:36:36 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.4
Link       : http://ghc.haskell.org/trac/ghc/changeset/ce8d8c01b85ed1ce2e67f46a0fde09012c471d1d/ghc

>---------------------------------------------------------------

commit ce8d8c01b85ed1ce2e67f46a0fde09012c471d1d
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Mon Dec 11 12:55:31 2017 -0500

    rts: Don't default to single capability when profiled
    
    This was presumably a vestige of the days when the profiled RTS couldn't
    run threaded. Fixes #14545.
    
    Test Plan: simonmar
    
    Reviewers: erikd, simonmar
    
    Reviewed By: simonmar
    
    Subscribers: rwbarton, thomie, carter
    
    GHC Trac Issues: #14545
    
    Differential Revision: https://phabricator.haskell.org/D4245
    
    (cherry picked from commit 4bfff7a507b5807736e9c6ce9814a9cfa60faeff)


>---------------------------------------------------------------

ce8d8c01b85ed1ce2e67f46a0fde09012c471d1d
 rts/RtsFlags.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index 39b1273..26171cf 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -1289,11 +1289,7 @@ error = true;
                 OPTION_SAFE;
                 THREADED_BUILD_ONLY(
                 if (rts_argv[arg][2] == '\0') {
-#if defined(PROFILING)
-                    RtsFlags.ParFlags.nCapabilities = 1;
-#else
                     RtsFlags.ParFlags.nCapabilities = getNumberOfProcessors();
-#endif
                 } else {
                     int nCapabilities;
                     OPTION_SAFE; /* but see extra checks below... */



More information about the ghc-commits mailing list