[GHC] #4956: threadDelay behavior 64-bit mac os x

GHC cvs-ghc at haskell.org
Sat Mar 5 21:08:11 CET 2011


#4956: threadDelay behavior 64-bit mac os x
-------------------------------+--------------------------------------------
    Reporter:  perikov         |        Owner:                             
        Type:  bug             |       Status:  infoneeded                 
    Priority:  normal          |    Milestone:  7.2.1                      
   Component:  Compiler        |      Version:  7.0.1                      
    Keywords:  threadDelay     |     Testcase:                             
   Blockedby:                  |   Difficulty:                             
          Os:  MacOS X         |     Blocking:                             
Architecture:  x86_64 (amd64)  |      Failure:  Incorrect result at runtime
-------------------------------+--------------------------------------------
Changes (by igloo):

  * status:  new => infoneeded
  * milestone:  => 7.2.1


Comment:

 Can you still reproduce this? It seems to be working fine for me in 7.0.2
 and HEAD:

 {{{
 Prelude Control.Concurrent Data.Time.Clock.POSIX> do getPOSIXTime >>=
 print; threadDelay 1000000; getPOSIXTime >>= print
 1299355338.201281s
 1299355339.201907s
 }}}

 {{{
 Prelude Control.Concurrent Data.Time.Clock.POSIX> do getPOSIXTime >>=
 print; threadDelay 1000000; getPOSIXTime >>= print
 1299355440.355244s
 1299355441.355901s
 }}}

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



More information about the Glasgow-haskell-bugs mailing list