[commit: base] master: Fix bug in IO manager when number of capabilities is changed; fixes #8087 (a65ce19)

Ian Lynagh igloo at ghc.haskell.org
Tue Jul 23 23:05:37 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/a65ce1985d93250274eda16e0529bb5a9c93371b

>---------------------------------------------------------------

commit a65ce1985d93250274eda16e0529bb5a9c93371b
Author: Ian Lynagh <ian at well-typed.com>
Date:   Tue Jul 23 21:39:02 2013 +0100

    Fix bug in IO manager when number of capabilities is changed; fixes #8087
    
    Patch from parcs.

>---------------------------------------------------------------

 GHC/Event/Thread.hs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/GHC/Event/Thread.hs b/GHC/Event/Thread.hs
index ca8ed1e..c4f83a0 100644
--- a/GHC/Event/Thread.hs
+++ b/GHC/Event/Thread.hs
@@ -339,7 +339,7 @@ ioManagerCapabilitiesChanged = do
 
               -- create new IO managers for the new caps:
               forM_ [old_n_caps..new_n_caps-1] $
-                startIOManagerThread eventManagerArray
+                startIOManagerThread new_eventManagerArray
 
               -- update the event manager array reference:
               writeIORef eventManager new_eventManagerArray






More information about the ghc-commits mailing list