[GHC] #10535: Float out causes major space leak

GHC ghc-devs at haskell.org
Tue Jun 16 14:19:45 UTC 2015


#10535: Float out causes major space leak
-------------------------------------+-------------------------------------
        Reporter:  AlexET            |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      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 AlexET):

 {{{-fno-state-hack}}} makes no difference

 {{{-fno-full-laziness}}} does fix the problem.

 In many ways the float out pass is doing what it is supposed to (floating
 out a shared value though a lambda) as it now does less work. However the
 list which is floated out is produced and consumed lazily and hence the
 floating out causes a major space leak (space leak may be the wrong term
 as the extra is constant but very large (1GB)).

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


More information about the ghc-tickets mailing list