1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-1999
5 * Prototypes for functions in Sanity.c
7 * ---------------------------------------------------------------------------*/
14 # define PVM_PE_MASK 0xfffc0000
15 # define MAX_PVM_PES MAX_PES
16 # define MAX_PVM_TIDS MAX_PES
17 # define MAX_SLOTS 100000
20 /* debugging routines */
21 extern void checkHeap ( bdescr *bd );
22 extern void checkHeapChunk ( StgPtr start, StgPtr end );
23 extern void checkChain ( bdescr *bd );
24 extern void checkTSO ( StgTSO* tso );
25 extern void checkGlobalTSOList ( rtsBool checkTSOs );
26 extern void checkStaticObjects ( StgClosure* static_objects );
27 extern void checkStackChunk ( StgPtr sp, StgPtr stack_end );
28 extern StgOffset checkStackFrame ( StgPtr sp );
29 extern StgOffset checkClosure ( StgClosure* p );
31 extern void checkMutableList ( bdescr *bd, nat gen );
34 extern void checkTSOsSanity(void);
35 extern rtsBool checkThreadQSanity (PEs proc, rtsBool check_TSO_too);
36 extern rtsBool checkThreadQsSanity (rtsBool check_TSO_too);
40 extern void checkBQ (StgBlockingQueueElement *bqe, StgClosure *closure);
42 extern void checkBQ (StgTSO *bqe, StgClosure *closure);
46 extern void checkLAGAtable(rtsBool check_closures);
47 extern void checkHeapChunk(StgPtr start, StgPtr end);
50 /* test whether an object is already on update list */
51 extern rtsBool isBlackhole( StgTSO* tso, StgClosure* p );