1bd21578842448ce27f2b130b8781df96fe96a70
[ghc-hetmet.git] / ghc / rts / Sanity.h
1 /* -----------------------------------------------------------------------------
2  * $Id: Sanity.h,v 1.5 2000/01/13 14:34:04 hwloidl Exp $
3  *
4  * (c) The GHC Team, 1998-1999
5  *
6  * Prototypes for functions in Sanity.c
7  *
8  * ---------------------------------------------------------------------------*/
9
10 #ifdef DEBUG
11 /* debugging routines */
12 extern void checkHeap  ( bdescr *bd, StgPtr start );
13 extern void checkChain ( bdescr *bd );
14 extern void checkStack ( StgPtr sp, StgPtr stack_end, StgUpdateFrame* su );
15 extern void checkTSO   ( StgTSO* tso );
16 #if defined(GRAN)
17 extern void checkTSOsSanity(void);
18 extern rtsBool checkThreadQSanity (PEs proc, rtsBool check_TSO_too);
19 extern rtsBool checkThreadQsSanity (rtsBool check_TSO_too);
20 #endif
21
22 extern StgOffset checkClosure( StgClosure* p );
23
24 /* test whether an object is already on update list */
25 extern rtsBool isBlackhole( StgTSO* tso, StgClosure* p );
26
27 #endif /* DEBUG */
28