Quantcast

[GHC] #6136: gettimeofday should not be used to schedule timeouts

classic Classic list List threaded Threaded
3 messages Options
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[GHC] #6136: gettimeofday should not be used to schedule timeouts

GHC
#6136: gettimeofday should not be used to schedule timeouts
------------------------------+---------------------------------------------
 Reporter:  DanielWaterworth  |          Owner:                  
     Type:  bug               |         Status:  new            
 Priority:  normal            |      Component:  libraries/base  
  Version:  7.4.1             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 From what I can tell,
 [http://hackage.haskell.org/packages/archive/base/latest/doc/html/src/GHC-
 Event-Clock.html#getCurrentTime getCurrentTime] uses gettimeofday and is
 used in
 [http://hackage.haskell.org/packages/archive/base/latest/doc/html/src/GHC-
 Event-Manager.html#registerTimeout registerTimeout] for the purpose of
 scheduling timeouts. I recommend reading [http://blog.habets.pp.se/2010/09
 /gettimeofday-should-never-be-used-to-measure-time this] for an
 explanation of why this isn't a good idea.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #6136: gettimeofday should not be used to schedule timeouts

GHC
#6136: gettimeofday should not be used to schedule timeouts
-------------------------------+--------------------------------------------
  Reporter:  DanielWaterworth  |          Owner:                  
      Type:  bug               |         Status:  closed          
  Priority:  normal            |      Milestone:  7.6.1          
 Component:  libraries/base    |        Version:  7.4.1          
Resolution:  duplicate         |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown        
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:  #5865          
-------------------------------+--------------------------------------------
Changes (by pcapriotti):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => duplicate
  * related:  => #5865
  * milestone:  => 7.6.1


Comment:

 Thanks for the report.

 We already switched to monotonic timers in HEAD. See #5865.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #6136: gettimeofday should not be used to schedule timeouts

GHC
In reply to this post by GHC
#6136: gettimeofday should not be used to schedule timeouts
-------------------------------+--------------------------------------------
  Reporter:  DanielWaterworth  |          Owner:                  
      Type:  bug               |         Status:  closed          
  Priority:  normal            |      Milestone:  7.6.1          
 Component:  libraries/base    |        Version:  7.4.1          
Resolution:  duplicate         |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown        
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:  #5865          
-------------------------------+--------------------------------------------

Comment(by DanielWaterworth):

 Thanks!

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Loading...