[GHC] #5556: Support pin-changing on ByteArray#s

GHC ghc-devs at haskell.org
Wed Sep 24 14:09:07 UTC 2014


#5556: Support pin-changing on ByteArray#s
-------------------------------------+-------------------------------------
              Reporter:  pumpkin     |            Owner:
                  Type:  feature     |           Status:  new
  request                            |        Milestone:  7.10.1
              Priority:  normal      |          Version:  7.2.1
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 Let me make sure I've got this right: pinned ByteArrays currently live on
 a totally different heap than unpinned ones, right? If you pin an unpinned
 ByteArray without copying it, now you have a hole in the middle of your GC
 area to allocate around. I suppose you could split the containing GC block
 into two? a reasonable thing to do if you don't expect many temporarily-
 pinned ByteArrays to exist at any given time.

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


More information about the ghc-tickets mailing list