Skip to content

rts: Fix capability-count check in zeroSlop

Ben Gamari requested to merge wip/T23088 into master

Previously zeroSlop examined RtsFlags to determine whether the program was single-threaded. This is wrong; a program may be started with +RTS -N1 yet the process may later increase the capability count with setNumCapabilities. This lead to quite subtle and rare crashes.

Fixes #23088 (closed).

Merge request reports