[GHC] #8083: setNumCapabilities broken in HEAD

GHC ghc-devs at haskell.org
Mon Jul 22 23:25:04 CEST 2013


#8083: setNumCapabilities broken in HEAD
------------------------------------------------+--------------------------
        Reporter:  parcs                        |            Owner:
            Type:  bug                          |           Status:  new
        Priority:  normal                       |        Milestone:
       Component:  Runtime System               |          Version:  7.7
      Resolution:                               |         Keywords:
Operating System:  Unknown/Multiple             |     Architecture:
 Type of failure:  Incorrect result at runtime  |  Unknown/Multiple
       Test Case:                               |       Difficulty:
        Blocking:                               |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:
------------------------------------------------+--------------------------

Comment (by parcs):

 Even simpler test case:

 {{{
 #!haskell
 import GHC.Conc
 import Control.Monad

 main :: IO ()
 main = do
     n <- getNumCapabilities
     when (n == 1) $ setNumCapabilities 2
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8083#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler




More information about the ghc-tickets mailing list