Commit 42285566 authored by sof's avatar sof
Browse files

[project @ 2003-10-31 16:22:11 by sof]

Report max heap in Mbytes as well.

merge to stable
parent 30b0cf61
/* -----------------------------------------------------------------------------
* $Id: OutOfHeap.c,v 1.4 2002/07/17 09:21:51 simonmar Exp $
* $Id: OutOfHeap.c,v 1.5 2003/10/31 16:22:11 sof Exp $
*
* User-overridable RTS hooks.
*
......@@ -14,7 +14,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<size>' 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<size>' to increase it.\n",
heap_size);
fprintf(stderr, "Heap exhausted;\nCurrent maximum heap size is %lu bytes (%lu Mb);\nuse `+RTS -M<size>' to increase it.\n",
heap_size, heap_size / (1024*1024));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment