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 checkLargeObjects ( 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 );
32 extern void checkMutableLists ( rtsBool checkTSOs );
34 extern void checkBQ (StgTSO *bqe, StgClosure *closure);
36 /* test whether an object is already on update list */
37 extern rtsBool isBlackhole( StgTSO* tso, StgClosure* p );