indicate which TSOs are dirty in the printAllThreads() output
[ghc-hetmet.git] / 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");
     }
 }