#4029: ghci leaks memory when loading a file
-------------------------------------------+--------------------------------
  Reporter:  blarsen                       |          Owner:  simonmar        
      Type:  bug                           |         Status:  new             
  Priority:  normal                        |      Milestone:  _|_             
 Component:  GHCi                          |        Version:                  
Resolution:                                |       Keywords:  memory leak     
Difficulty:                                |             Os:  Unknown/Multiple
  Testcase:                                |   Architecture:  Unknown/Multiple
   Failure:  Compile-time performance bug  |  
-------------------------------------------+--------------------------------
Changes (by simonmar):

  * priority:  high => normal
  * milestone:  6.14.1 => _|_


Comment:

 I fixed a leak:

 {{{
 Fri Jul  2 06:02:10 PDT 2010  Simon Marlow <[email protected]>
   * Fix a few places where we forgot to close the text codecs (#4029)
   Each time you invoke :load in GHCi it resets the CAFs, including
   stdin/stdout/stderr, and each of these was allocating a new iconv_t.
 }}}

 The process still grows when repeatedly loading a file, but much more
 slowly than before.  The heap profile shows that there is a small leak
 somewhere (THUNK_2_0 is growing, everything else is constant).  You can
 get a heap profile just by adding `+RTS -h` to `ghci`.

 So I guess we should leave the ticket open as there's still a small leak,
 but I don't think it's a show stopper, so I'll remove the ticket from the
 6.14.1 milestone.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4029#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to