
#9261: -S prints incorrect number of bound tasks -------------------------------------+------------------------------------- Reporter: edsko | Owner: thomie Type: bug | Status: closed Priority: low | Milestone: 7.12.1 Component: Runtime System | Version: 7.8.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: #8124 | Blocking: | Differential Revisions: Phab:D746 -------------------------------------+------------------------------------- Changes (by thomie): * status: patch => closed * resolution: => fixed * related: => #8124 Comment: The code seems correct to me, so I'm closing this. But if you think you really do see weird numbers reported, of course reopen. Note that if your code doesn't explicitly call `hs_thread_done` (#8124), the number of bound tasks never decreases. So `taskCount` would be the sum of the total number of bound tasks and the total number of worker tasks ever created in that case. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9261#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler