[GHC] #13497: GHC does not use select()/poll() correctly on non-Linux platforms

GHC ghc-devs at haskell.org
Thu Mar 30 23:28:22 UTC 2017


#13497: GHC does not use select()/poll() correctly on non-Linux platforms
-------------------------------------+-------------------------------------
        Reporter:  nh2               |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Runtime System    |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #8684, #12912     |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nh2):

 I found (using [https://hackage.haskell.org/package/base-4.9.1.0/docs/GHC-
 RTS-Flags.html#v:getRTSFlags getRTSFlags]) that setting `+RTS -I10` will
 set

 {{{
 idleGCDelayTime = 10000000000
 doIdleGC = True
 }}}

 even when the threaded RTS is not enabled. I'm not sure if that's a bug,
 but commit [https://github.com/ghc/ghc/commit/33a84b8c79f 33a84b8c79f]
 that introduced the idle GC says

 {{{
 The idle GC only happens in the threaded RTS
 }}}

 so maybe this is a bug?

 [https://github.com/ghc/ghc/blob/428e152be6bb0fd3867e41cee82a6d5968a11a26/rts/Timer.c#L66
 The line that checks doIdleGC] is clearly outside the `#ifdef
 THREADED_RTS`.

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


More information about the ghc-tickets mailing list