1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-1999
5 * User-overridable RTS hooks.
7 * ---------------------------------------------------------------------------*/
9 extern char *ghc_rts_opts;
11 extern void OnExitHook (void);
12 extern int NoRunnableThreadsHook (void);
13 extern void StackOverflowHook (unsigned long stack_size);
14 extern void OutOfHeapHook (unsigned long request_size, unsigned long heap_size);
15 extern void MallocFailHook (unsigned long request_size /* in bytes */, char *msg);
16 extern void defaultsHook (void);
18 extern void InitEachPEHook (void);
19 extern void ShutdownEachPEHook (void);