[Haskell-cafe] heap issues
Spencer Janssen
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.
Cheers,
Spencer Janssen
On 7/27/06, Jeff Polakow <jeff.polakow at db.com> wrote:
>
> Hello,
>
> Why would ghci run out of heap space (and crash) the second time I run a
> computation?
>
> More specifically, I have a ghci session which goes something like this:
>
> *Analysis>run
> [ ... print out of a very long list ...]
>
> *Analysis>run
> [ ... 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).
>
> thanks,
> Jeff
>
> --
> 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
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>
More information about the Haskell-Cafe
mailing list