
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.

On 27/07/06, Jeff Polakow
Also, there doesn't appear to be a '-M<size>' flag for ghc (I'm using 6.4.2 on windows xp).
I'm sure there is. You must add following arguments: +RTS -M<size> -RTS Note the rts magic. Regards, -- Intelligence is like a river: the deeper it is, the less noise it makes

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
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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Jeff Polakow
-
Piotr Kalinowski
-
Spencer Janssen