Commit 4bfff7a5 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

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
parent 21cdfe5f
......@@ -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... */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment