Skip to content

'+RTS -s' gives incorrect value for work balance in some cases

The formula for work balance as printed by the rts -s flag does not account for the possibility of the number of capabilities changing. Nor does it account for the number of garbage collection threads being other than n_capabilities. The attached program demonstrates the first problem, with instructions for replication in comments.

Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information