X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=ghc%2Fruntime%2Fhooks%2FOutOfHeap.lc;h=8db9fa8e9691085d347684abc4d3dbebdcb83edc;hp=a1c61104895e3e25dfc50fa55dbd3fca788f4142;hb=5eb1c77c795f92ed0f4c8023847e9d4be1a4fd0d;hpb=f7ecf7234c224489be8a5e63fced903b655d92ee diff --git a/ghc/runtime/hooks/OutOfHeap.lc b/ghc/runtime/hooks/OutOfHeap.lc index a1c6110..8db9fa8 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' to increase the total heap size.\n", request_size, heap_size);