fix bug in migrateThread()
authorSimon Marlow <marlowsd@gmail.com>
Thu, 1 Apr 2010 10:58:40 +0000 (10:58 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 1 Apr 2010 10:58:40 +0000 (10:58 +0000)
rts/Threads.c

index e8a835b..f07b36a 100644 (file)
@@ -291,7 +291,7 @@ migrateThread (Capability *from, StgTSO *tso, Capability *to)
     traceEventMigrateThread (from, tso, to->no);
     // ThreadMigrating tells the target cap that it needs to be added to
     // the run queue when it receives the MSG_TRY_WAKEUP.
-    tso->what_next = ThreadMigrating;
+    tso->why_blocked = ThreadMigrating;
     tso->cap = to;
     tryWakeupThread(from, tso);
 }