[GHC] #5925: Add inline version of newArray#

GHC ghc-devs at haskell.org
Sun Mar 9 20:51:38 UTC 2014


#5925: Add inline version of newArray#
-------------------------------------+------------------------------------
        Reporter:  tibbe             |            Owner:  simonmar
            Type:  feature request   |           Status:  patch
        Priority:  normal            |        Milestone:  7.6.2
       Component:  Compiler          |          Version:  7.4.1
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:  4258
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by tibbe):

 Replying to [comment:21 simonmar]:
 > Thanks, I started refactoring this yesterday.  I want to move the
 knowledge about the array layout into `SMRep` (where the other heap-
 representation stuff is) as well as sharing the heap allocation code.

 Great. If you refactor the code I wrote, make sure you get the latest
 patch as I fixed some bugs. The `newArray#` code now validates (haven't
 validated the `newByteArray#` version yet).

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


More information about the ghc-tickets mailing list