[project @ 1998-12-02 13:17:09 by simonm]
[ghc-hetmet.git] / ghc / rts / hooks / OutOfHeap.c
1 /* -----------------------------------------------------------------------------
2  * $Id: OutOfHeap.c,v 1.2 1998/12/02 13:29:14 simonm Exp $
3  *
4  * User-overridable RTS hooks.
5  *
6  * ---------------------------------------------------------------------------*/
7
8 #include "Rts.h"
9
10 void
11 OutOfHeapHook (lnat request_size, lnat heap_size) /* both sizes in bytes */
12 {
13   /*    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", */
14
15   fprintf(stderr, "Heap exhausted;\nCurrent maximum heap size is %lu bytes;\nuse `+RTS -M<size>' to increase it.\n",
16           heap_size);
17 }
18