extra sanity checking: call checkTSO() in resumeThread()
authorSimon Marlow <simonmar@microsoft.com>
Fri, 10 Mar 2006 20:43:43 +0000 (20:43 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Fri, 10 Mar 2006 20:43:43 +0000 (20:43 +0000)
ghc/rts/Schedule.c

index 578328d..6d8fe63 100644 (file)
@@ -2289,6 +2289,8 @@ resumeThread (void *task_)
     /* We might have GC'd, mark the TSO dirty again */
     dirtyTSO(tso);
 
+    IF_DEBUG(sanity, checkTSO(tso));
+
     return &cap->r;
 }