Skip to content

setNumCapabilities: Assert that n_caps < MAX_N_CAPS

Ben Gamari requested to merge wip/T25560 into master

In #25560 (closed) it was noticed that setNumCapabilities would allow the user to set a capability count higher than MAX_N_CAPABILITIES. Here we introduce a check for this in ghc-internal and add an assertion in the RTS for good measure.

Fixes #25560 (closed).

Merge request reports

Loading