diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-12-17 22:03:39 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-12-30 06:52:09 -0500 |
commit | f14bb50b76a60253a090797c652a9d29120bf875 (patch) | |
tree | ccdf6733f3cb6d0574792017656b1d40a35ba028 /rts/RtsFlags.c | |
parent | 2528e6847d6ab11b452998e5511d60b26453f022 (diff) | |
download | haskell-f14bb50b76a60253a090797c652a9d29120bf875.tar.gz |
rts: Ensure that nonmoving gc isn't used with profiling
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."); |