summaryrefslogtreecommitdiff
path: root/rts/RtsFlags.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2016-10-28 16:34:44 +0100
committerSimon Marlow <marlowsd@gmail.com>2016-10-28 20:14:41 +0100
commitaae2b3d522aae49311a9f9c52d40fb58c99eed13 (patch)
tree75a592b689125fa12d942eca925a57d28a15a3e7 /rts/RtsFlags.c
parent7187dedabec8e01394578c9f40241ca3d644a4f8 (diff)
downloadhaskell-aae2b3d522aae49311a9f9c52d40fb58c99eed13.tar.gz
Make it possible to use +RTS -qn without -N
It's entirely reasonable to set +RTS -qn without setting -N, because the program might later call setNumCapabilities. If we disallow it, there's no way to use -qn on programs that use setNumCapabilities.
Diffstat (limited to 'rts/RtsFlags.c')
-rw-r--r--rts/RtsFlags.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index d86b154342..aeb2fe532f 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -1487,13 +1487,6 @@ static void normaliseRtsOpts (void)
RtsFlags.ParFlags.parGcLoadBalancingGen = 1;
}
}
-
-#ifdef THREADED_RTS
- if (RtsFlags.ParFlags.parGcThreads > RtsFlags.ParFlags.nCapabilities) {
- errorBelch("GC threads (-qn) must be between 1 and the value of -N");
- errorUsage();
- }
-#endif
}
static void errorUsage (void)