summaryrefslogtreecommitdiff
path: root/ghc/runtime/hooks/OutOfHeap.lc
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/runtime/hooks/OutOfHeap.lc')
-rw-r--r--ghc/runtime/hooks/OutOfHeap.lc5
1 files changed, 1 insertions, 4 deletions
diff --git a/ghc/runtime/hooks/OutOfHeap.lc b/ghc/runtime/hooks/OutOfHeap.lc
index a1c6110489..8db9fa8e96 100644
--- a/ghc/runtime/hooks/OutOfHeap.lc
+++ b/ghc/runtime/hooks/OutOfHeap.lc
@@ -2,11 +2,8 @@
#include "rtsdefs.h"
void
-OutOfHeapHook (request_size)
- W_ request_size; /* in bytes */
+OutOfHeapHook (W_ request_size, W_ heap_size) /* both sizes in bytes */
{
- W_ heap_size = RTSflags.GcFlags.heapSize * sizeof(W_); /* i.e., 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",
request_size,
heap_size);