Commit f14bb50b authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

rts: Ensure that nonmoving gc isn't used with profiling

parent 2528e684
Pipeline #14096 failed with stages
in 448 minutes and 52 seconds
......@@ -372,8 +372,8 @@ performance.
collections. Under this collection strategy oldest-generation garbage
collection can proceed concurrently with mutation.
Note that :rts-flag:`--nonmoving-gc` cannot be used with ``-G1`` nor
:rts-flag:`-c`.
Note that :rts-flag:`-nonmoving-gc` cannot be used with ``-G1``,
:rts-flag:`profiling <-hc>` nor :rts-flag:`-c`.
.. rts-flag:: -xn
......
......@@ -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.");
......
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