From 4553e94143723034495b642e3e7b92c128878f8a Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 16 Feb 2005 10:50:23 +0000 Subject: [PATCH] [project @ 2005-02-16 10:50:23 by simonmar] Recommend using -M rather than -H to increase the heap size. On Windows, there's an arbitrary limit of 256Mb due to the way memory is allocated, which is the primary cause of running out of heap. On Unix, the heap size is unlimited by default. --- ghc/compiler/parser/hschooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/compiler/parser/hschooks.c b/ghc/compiler/parser/hschooks.c index 17c11fa..7b4f82b 100644 --- a/ghc/compiler/parser/hschooks.c +++ b/ghc/compiler/parser/hschooks.c @@ -62,7 +62,7 @@ OutOfHeapHook (unsigned long request_size/* always zero these days */, unsigned long heap_size) /* both in bytes */ { - fprintf(stderr, "GHC's heap exhausted: current limit is %lu bytes;\nUse the `-H' option to increase the total heap size.\n", + fprintf(stderr, "GHC's heap exhausted: current limit is %lu bytes;\nUse the `-M' option to increase the total heap size.\n", heap_size); } -- 1.7.10.4