simplification/optimisation: update tso->bound->tso when scavenging the TSO
[ghc-hetmet.git] / rts / sm / Scav.c
index b34aca6..4fa0a22 100644 (file)
@@ -73,6 +73,11 @@ scavengeTSO (StgTSO *tso)
 
     debugTrace(DEBUG_gc,"scavenging thread %d",(int)tso->id);
 
+    // update the pointer from the Task.
+    if (tso->bound != NULL) {
+        tso->bound->tso = tso;
+    }
+
     saved_eager = gct->eager_promotion;
     gct->eager_promotion = rtsFalse;