[GHC] #9261: -S prints incorrect number of bound tasks
GHC
ghc-devs at haskell.org
Thu Jul 3 12:58:37 UTC 2014
#9261: -S prints incorrect number of bound tasks
------------------------------------+-------------------------------------
Reporter: edsko | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.8.2
Keywords: | Operating System: Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
------------------------------------+-------------------------------------
In `Stats.c` we have:
{{{
statsPrintf(" TASKS: %d (%d bound, %d peak workers (%d
total), using -N%d)\n",
taskCount, taskCount - workerCount,
peakWorkerCount, workerCount,
n_capabilities);
}}}
but I think `taskCount - workerCount` must be wrong, because `taskCount`
is the _current_ number of tasks, while `workerAcount` is the _total_
number of workers (accumulating). I think it should be:
{{{
statsPrintf(" TASKS: %d (%d bound, %d peak workers (%d
total), using -N%d)\n",
taskCount, taskCount - currentWorkerCount,
peakWorkerCount, workerCount,
n_capabilities);
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9261>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list