projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8db9fa8e9691085d347684abc4d3dbebdcb83edc
[ghc-hetmet.git]
/
ghc
/
runtime
/
hooks
/
OutOfHeap.lc
1
\begin{code}
2
#include "rtsdefs.h"
3
4
void
5
OutOfHeapHook (W_ request_size, W_ heap_size) /* both sizes in bytes */
6
{
7
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",
8
request_size,
9
heap_size);
10
}
11
\end{code}