X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2Fhooks%2FOutOfHeap.c;h=98db0d7d49bfec4b98765ef42d6e498843a18143;hb=85f3db842ae9bd547b3b21c18754b4987335fd38;hp=ec02a7f2b73a24fe3b69492955dc74fc62e2d160;hpb=7457757f193b28b5fe8fee01edbed012c2fda897;p=ghc-hetmet.git diff --git a/ghc/rts/hooks/OutOfHeap.c b/ghc/rts/hooks/OutOfHeap.c index ec02a7f..98db0d7 100644 --- a/ghc/rts/hooks/OutOfHeap.c +++ b/ghc/rts/hooks/OutOfHeap.c @@ -1,5 +1,4 @@ /* ----------------------------------------------------------------------------- - * $Id: OutOfHeap.c,v 1.4 2002/07/17 09:21:51 simonmar Exp $ * * User-overridable RTS hooks. * @@ -14,7 +13,7 @@ OutOfHeapHook (lnat request_size, lnat heap_size) /* both sizes in bytes */ /* fprintf(stderr, "Heap exhausted;\nwhile trying to allocate %lu bytes in a %lu-byte heap;\nuse `+RTS -H' to increase the total heap size.\n", */ (void)request_size; /* keep gcc -Wall happy */ - fprintf(stderr, "Heap exhausted;\nCurrent maximum heap size is %lu bytes;\nuse `+RTS -M' to increase it.\n", - heap_size); + fprintf(stderr, "Heap exhausted;\nCurrent maximum heap size is %lu bytes (%lu Mb);\nuse `+RTS -M' to increase it.\n", + heap_size, heap_size / (1024*1024)); }