summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-29 18:51:12 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-12-10 19:53:54 -0500
commit843ceb3892432b28628e4b4bad2c712ca371d02b (patch)
tree6553b70012826e7f80190f68120111a27cb649f8 /rts
parente3bba7e4b221139090edf54a18c7e0e1ec3f9be8 (diff)
downloadhaskell-843ceb3892432b28628e4b4bad2c712ca371d02b.tar.gz
rts: Add a long form flag to enable the non-moving GC
The old flag, `-xn`, was quite cryptic. Here we add `--nonmoving-gc` in addition.
Diffstat (limited to 'rts')
-rw-r--r--rts/RtsFlags.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index 7949d401db..54680b4b7f 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -931,6 +931,11 @@ error = true;
printRtsInfo(rtsConfig);
stg_exit(0);
}
+ else if (strequal("nonmoving-gc",
+ &rts_argv[arg][2])) {
+ OPTION_SAFE;
+ RtsFlags.GcFlags.useNonmoving = true;
+ }
#if defined(THREADED_RTS)
else if (!strncmp("numa", &rts_argv[arg][2], 4)) {
if (!osBuiltWithNumaSupport()) {