[project @ 2005-02-16 10:50:23 by simonmar]
authorsimonmar <unknown>
Wed, 16 Feb 2005 10:50:23 +0000 (10:50 +0000)
committersimonmar <unknown>
Wed, 16 Feb 2005 10:50:23 +0000 (10:50 +0000)
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

index 17c11fa..7b4f82b 100644 (file)
@@ -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<size>' option to increase the total heap size.\n",
+    fprintf(stderr, "GHC's heap exhausted: current limit is %lu bytes;\nUse the `-M<size>' option to increase the total heap size.\n",
        heap_size);
 }