X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FSanity.h;h=88568988bffe21c09a20c978992c5e9ba4ed00ba;hb=16d5d1c75c999677783c9c1bda519540fa9a6e58;hp=1bd21578842448ce27f2b130b8781df96fe96a70;hpb=1b28d4e1f43185ad8c8e7407c66413e1b358402b;p=ghc-hetmet.git diff --git a/ghc/rts/Sanity.h b/ghc/rts/Sanity.h index 1bd2157..8856898 100644 --- a/ghc/rts/Sanity.h +++ b/ghc/rts/Sanity.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Sanity.h,v 1.5 2000/01/13 14:34:04 hwloidl Exp $ + * $Id: Sanity.h,v 1.8 2001/03/22 03:51:10 hwloidl Exp $ * * (c) The GHC Team, 1998-1999 * @@ -8,16 +8,34 @@ * ---------------------------------------------------------------------------*/ #ifdef DEBUG + +# if defined(PAR) +# define PVM_PE_MASK 0xfffc0000 +# define MAX_PVM_PES MAX_PES +# define MAX_PVM_TIDS MAX_PES +# define MAX_SLOTS 100000 +# endif + /* debugging routines */ extern void checkHeap ( bdescr *bd, StgPtr start ); +extern void checkHeapChunk ( StgPtr start, StgPtr end ); extern void checkChain ( bdescr *bd ); extern void checkStack ( StgPtr sp, StgPtr stack_end, StgUpdateFrame* su ); extern void checkTSO ( StgTSO* tso ); +extern void checkGlobalTSOList (rtsBool checkTSOs); +extern void checkStaticObjects ( void ); #if defined(GRAN) extern void checkTSOsSanity(void); extern rtsBool checkThreadQSanity (PEs proc, rtsBool check_TSO_too); extern rtsBool checkThreadQsSanity (rtsBool check_TSO_too); #endif +#if defined(PAR) +extern void checkBQ (StgBlockingQueueElement *bqe, StgClosure *closure); +extern void checkLAGAtable(rtsBool check_closures); +extern void checkHeapChunk(StgPtr start, StgPtr end); +#else +extern void checkBQ (StgTSO *bqe, StgClosure *closure); +#endif extern StgOffset checkClosure( StgClosure* p );