[Haskell-cafe] heap issues

Jeff Polakow jeff.polakow at db.com
Thu Jul 27 16:27:32 EDT 2006


  Why would ghci run out of heap space (and crash) the second time I run a 

More specifically, I have a ghci session which goes something like this:

    [ ... print out of a very long list ...]
    [ ... partial print out
    GHC's heap exhausted: current limit is 268435456 bytes;
    Use the `-M<size>' option to increase the total heap size.

Shouldn't the garbage collector free up everything in between my top-level 
function executions?

Also, there doesn't appear to be a  '-M<size>' flag for ghc (I'm using 
6.4.2 on windows xp).


This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/haskell-cafe/attachments/20060727/2b13919e/attachment.htm

More information about the Haskell-Cafe mailing list