blob: a448979525ec08995f25121732663aecc0c1c932 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* -----------------------------------------------------------------------------
* $Id: Hooks.h,v 1.7 2004/02/15 13:29:44 krasimir Exp $
*
* (c) The GHC Team, 1998-1999
*
* User-overridable RTS hooks.
*
* ---------------------------------------------------------------------------*/
extern char *ghc_rts_opts;
extern void OnExitHook (void);
extern int NoRunnableThreadsHook (void);
extern void StackOverflowHook (unsigned long stack_size);
extern void OutOfHeapHook (unsigned long request_size, unsigned long heap_size);
extern void MallocFailHook (unsigned long request_size /* in bytes */, char *msg);
extern void defaultsHook (void);
#if defined(PAR)
extern void InitEachPEHook (void);
extern void ShutdownEachPEHook (void);
#endif
|