diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-12-17 22:03:39 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-12-26 18:00:50 -0500 |
commit | 5f91c661d6e368c7b010be3a02c1ea71ee7f5cea (patch) | |
tree | e1eb7e5243f3d03f56049b5727b077533246df0c /rts/RtsFlags.c | |
parent | 334290b6681796dd141c964b88c541da13ce03c7 (diff) | |
download | haskell-wip/no-xn-prof.tar.gz |
rts: Ensure that nonmoving gc isn't used with profilingwip/no-xn-prof
Diffstat (limited to 'rts/RtsFlags.c')
-rw-r--r-- | rts/RtsFlags.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index 54680b4b7f..4eac4622dd 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -1738,6 +1738,11 @@ static void normaliseRtsOpts (void) barf("The non-moving collector doesn't support -G1"); } + if (RtsFlags.ProfFlags.doHeapProfile != NO_HEAP_PROFILING && + RtsFlags.GcFlags.useNonmoving) { + barf("The non-moving collector doesn't support profiling"); + } + if (RtsFlags.GcFlags.compact && RtsFlags.GcFlags.useNonmoving) { errorBelch("The non-moving collector cannot be used in conjunction with\n" "the compacting collector."); |