[GHC] #9923: Offer copy-on-GC sliced arrays

GHC ghc-devs at haskell.org
Tue Jan 6 21:11:18 UTC 2015


#9923: Offer copy-on-GC sliced arrays
-------------------------------------+-------------------------------------
        Reporter:  dfeuer            |                   Owner:  simonmar
            Type:  feature request   |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Runtime System    |                 Version:  7.11
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by simonmar):

 The problem occurs if you have both a slice and a reference to the
 original array.  The GC can't know until the end of GC whether it should
 just copy the slice or keep the whole array, and neither can it copy both
 the slice and the array (GC would require more memory than the original
 heap).

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


More information about the ghc-tickets mailing list