[GHC] #12996: Memory leak in recursion when switching from -O1 to -O2

GHC ghc-devs at haskell.org
Tue Dec 20 10:42:42 UTC 2016


#12996: Memory leak in recursion when switching from -O1 to -O2
-------------------------------------+-------------------------------------
        Reporter:  AndreasK          |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:  fixed             |             Keywords:  Memory leak,
                                     |  optimization
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime           |            Test Case:
  performance bug                    |  testsuite/tests/perf/should_run/T12996
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by simonpj):

 * status:  new => closed
 * testcase:   => testsuite/tests/perf/should_run/T12996
 * resolution:   => fixed


Comment:

 Thank you AndreasK.  It's hard to tickle this bug, but when tickled it can
 make things exponentially expensive as you discovered. Thanks for the nice
 test case.

 I'll close this, leaving #11731 open so that we remember to merge to 8.0.3

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


More information about the ghc-tickets mailing list