[GHC] #9067: Optimize clearNursery by short-circuiting when we get to currentNursery

GHC ghc-devs at haskell.org
Mon May 5 21:20:21 UTC 2014


#9067: Optimize clearNursery by short-circuiting when we get to currentNursery
--------------------------------------------+------------------------------
        Reporter:  ezyang                   |            Owner:  ezyang
            Type:  task                     |           Status:  new
        Priority:  low                      |        Milestone:
       Component:  Runtime System           |          Version:  7.9
      Resolution:                           |         Keywords:
Operating System:  Unknown/Multiple         |     Architecture:
 Type of failure:  Runtime performance bug  |  Unknown/Multiple
       Test Case:                           |       Difficulty:  Unknown
        Blocking:                           |       Blocked By:
                                            |  Related Tickets:
--------------------------------------------+------------------------------

Comment (by simonmar):

 Andreas Voellmy and I talked about some similar ideas.  I doubt that you
 want to rely on `CurrentNursery`, because we want to reset that after
 every GC, but instead I think the right approach is to assume that every
 block from `CurrentNursery` onwards needs to have its free pointer reset
 before we use it.  It's a somewhat subtle invariant and something else we
 have to get right, but the win seems to be worthwhile.

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


More information about the ghc-tickets mailing list