indicate which TSOs are dirty in the printAllThreads() output
authorSimon Marlow <marlowsd@gmail.com>
Wed, 7 Jan 2009 15:14:49 +0000 (15:14 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 7 Jan 2009 15:14:49 +0000 (15:14 +0000)
rts/Threads.c

index 65eaf8d..2c7b2be 100644 (file)
@@ -763,6 +763,11 @@ printThreadStatus(StgTSO *t)
        default:
            printThreadBlockage(t);
        }
+        if (t->flags & TSO_DIRTY) {
+            debugBelch(" (TSO_DIRTY)");
+        } else if (t->flags & TSO_LINK_DIRTY) {
+            debugBelch(" (TSO_LINK_DIRTY)");
+        }
        debugBelch("\n");
     }
 }