FIX #1898: add a missing UNTAG_CLOSURE() in checkBlackHoles
authorSimon Marlow <simonmar@microsoft.com>
Thu, 3 Jan 2008 11:27:17 +0000 (11:27 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 3 Jan 2008 11:27:17 +0000 (11:27 +0000)
rts/Schedule.c

index cb2f7f3..3a45495 100644 (file)
@@ -2949,7 +2949,7 @@ checkBlackHoles (Capability *cap)
     t = blackhole_queue;
     while (t != END_TSO_QUEUE) {
        ASSERT(t->why_blocked == BlockedOnBlackHole);
-       type = get_itbl(t->block_info.closure)->type;
+       type = get_itbl(UNTAG_CLOSURE(t->block_info.closure))->type;
        if (type != BLACKHOLE && type != CAF_BLACKHOLE) {
            IF_DEBUG(sanity,checkTSO(t));
            t = unblockOne(cap, t);