X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FSTM.c;h=5c3b4341e2136b4e527cb3a03363a654c2cc18f1;hb=29e342d1903ba4cb4b58a66605f00920eddae7a5;hp=424796265aafbd4b585db031ae944c2f709e9944;hpb=a9e6c4411ab70eb2d16aba32c96ee963d86ebdae;p=ghc-hetmet.git diff --git a/rts/STM.c b/rts/STM.c index 4247962..5c3b434 100644 --- a/rts/STM.c +++ b/rts/STM.c @@ -90,6 +90,7 @@ #include "SMP.h" #include "STM.h" #include "Storage.h" +#include "Trace.h" #include #include @@ -113,16 +114,7 @@ // If SHAKE is defined then validation will sometime spuriously fail. They helps test // unusualy code paths if genuine contention is rare -#if defined(DEBUG) -#define SHAKE -#if defined(THREADED_RTS) -#define TRACE(_x...) IF_DEBUG(stm, debugBelch("STM (task %p): ", (void *)(unsigned long)(unsigned int)osThreadId()); debugBelch ( _x )) -#else -#define TRACE(_x...) IF_DEBUG(stm, debugBelch ( _x )) -#endif -#else -#define TRACE(_x...) /*Nothing*/ -#endif +#define TRACE(_x...) debugTrace(DEBUG_stm, "STM: " _x) #ifdef SHAKE static const int do_shake = TRUE;