[GHC] #15980: unpin a mutable byte array

GHC ghc-devs at haskell.org
Mon Dec 3 17:14:02 UTC 2018


#15980: unpin a mutable byte array
-------------------------------------+-------------------------------------
        Reporter:  andrewthad        |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:  8.6.3
       Component:  Compiler          |              Version:  8.6.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by carter):

 Hrrrmm.  Do you have any examples where you can create excessive
 fragmentation? That’d be worth a ticket.

 One issue I see with adding such a primop is that it won’t be possible to
 respect alignment constraints that may have been expressed at bytearray
 allocation time.

 For unaligned bytearrays, you could just copy the buffer over to an
 unpinned array then copy it into the compact region

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


More information about the ghc-tickets mailing list