summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-01-29 22:00:58 -0500
committerBen Gamari <ben@well-typed.com>2020-12-01 12:48:53 -0500
commitaebe5c4de5a41fe888b75f39fdd6f19a8c3ccb92 (patch)
treea3ccc320217797dc58414661d68d64c291e77042
parent20a89e98a220d85353d74487d6abe90a527e76d1 (diff)
downloadhaskell-aebe5c4de5a41fe888b75f39fdd6f19a8c3ccb92.tar.gz
Disable flawed assertion
-rw-r--r--rts/Threads.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rts/Threads.c b/rts/Threads.c
index db971a2369..97be179e85 100644
--- a/rts/Threads.c
+++ b/rts/Threads.c
@@ -341,7 +341,10 @@ unblock:
void
migrateThread (Capability *from, StgTSO *tso, Capability *to)
{
- ASSERT_FULL_CAPABILITY_INVARIANTS(from, getTask());
+ // Sadly we can't assert this since migrateThread is called from
+ // scheduleDoGC, where we implicly own all capabilities.
+ //ASSERT_FULL_CAPABILITY_INVARIANTS(from, getTask());
+
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.