1 /* -----------------------------------------------------------------------------
2 * $Id: Sanity.h,v 1.6 2000/03/31 03:09:36 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 );
16 extern void checkGlobalTSOList (rtsBool checkTSOs);
17 extern void checkStaticObjects ( void );
19 extern void checkTSOsSanity(void);
20 extern rtsBool checkThreadQSanity (PEs proc, rtsBool check_TSO_too);
21 extern rtsBool checkThreadQsSanity (rtsBool check_TSO_too);
24 extern void checkBQ (StgBlockingQueueElement *bqe, StgClosure *closure);
25 extern void checkLAGAtable(rtsBool check_closures);
26 extern void checkHeapChunk(StgPtr start, StgPtr end);
28 extern void checkBQ (StgTSO *bqe, StgClosure *closure);
31 extern StgOffset checkClosure( StgClosure* p );
33 /* test whether an object is already on update list */
34 extern rtsBool isBlackhole( StgTSO* tso, StgClosure* p );