Commit 6555c6bb authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

rts: Disable -hb with multiple capabilities

Biographical profiling is not thread-safe as documented in #12019. Throw
an error when it is used in this way.

Test Plan: Validate

Reviewers: simonmar, austin, erikd

Reviewed By: erikd

Subscribers: thomie

Differential Revision:

GHC Trac Issues: #12019
parent c6ac1e5f
......@@ -400,6 +400,13 @@ initHeapProfiling(void)
errorBelch("cannot mix -hb and -hr");
// See Trac #12019.
if (doingLDVProfiling() && RtsFlags.ParFlags.nCapabilities > 1) {
errorBelch("-hb cannot be used with multiple capabilities");
// we only count eras if we're doing LDV profiling. Otherwise era
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