1 /* -----------------------------------------------------------------------------
2 * $Id: Sanity.h,v 1.5 2000/01/13 14:34:04 hwloidl Exp $
4 * (c) The GHC Team, 1998-1999
6 * Prototypes for functions in Sanity.c
8 * ---------------------------------------------------------------------------*/
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 );
17 extern void checkTSOsSanity(void);
18 extern rtsBool checkThreadQSanity (PEs proc, rtsBool check_TSO_too);
19 extern rtsBool checkThreadQsSanity (rtsBool check_TSO_too);
22 extern StgOffset checkClosure( StgClosure* p );
24 /* test whether an object is already on update list */
25 extern rtsBool isBlackhole( StgTSO* tso, StgClosure* p );