1 /* -----------------------------------------------------------------------------
2 * $Id: OutOfHeap.c,v 1.3 1999/06/29 13:06:45 panne Exp $
4 * User-overridable RTS hooks.
6 * ---------------------------------------------------------------------------*/
11 OutOfHeapHook (lnat request_size, lnat heap_size) /* both sizes in bytes */
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", */
15 (void)request_size; /* keep gcc -Wall happy */
16 fprintf(stderr, "Heap exhausted;\nCurrent maximum heap size is %lu bytes;\nuse `+RTS -M<size>' to increase it.\n",