[Haskell-cafe] heap issues
spencerjanssen at gmail.com
Thu Jul 27 17:38:03 EDT 2006
ghci keeps the value of your last computation in a special variable
called "it". Therefore, the value of your last run can't be garbage
collected until the current run is finished. Try "print run" or type
in a dummy expression in between runs.
On 7/27/06, Jeff Polakow <jeff.polakow at db.com> wrote:
> 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.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe