[GHC] #12419: Scheduling bug with forkOS + MVar
GHC
ghc-devs at haskell.org
Wed Aug 3 07:07:49 UTC 2016
#12419: Scheduling bug with forkOS + MVar
-------------------------------------+-------------------------------------
Reporter: luisgabriel | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.2
Component: Runtime System | Version: 8.0.1
Resolution: | Keywords: forkOS;
| scheduler
Operating System: Linux | Architecture: x86_64
| (amd64)
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2430
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Marlow <marlowsd@…>):
In [changeset:"988ad8ba8e709eff3cea59728e481bb269fa6185/ghc"
988ad8ba/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="988ad8ba8e709eff3cea59728e481bb269fa6185"
Fix to thread migration
Summary:
If we had 2 threads on the run queue, say [A,B], and B is bound to the
current Task, then we would fail to migrate any threads. This fixes it
so that we would migrate A in that case.
This will help parallelism a bit in programs that have lots of bound
threads.
Test Plan:
Test program in #12419, which is actually not a great program but it
does behave a bit better after this change.
Reviewers: ezyang, niteria, bgamari, austin, erikd
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2430
GHC Trac Issues: #12419
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12419#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list