[project @ 2005-09-12 14:34:08 by simonmar]
authorsimonmar <unknown>
Mon, 12 Sep 2005 14:34:08 +0000 (14:34 +0000)
committersimonmar <unknown>
Mon, 12 Sep 2005 14:34:08 +0000 (14:34 +0000)
checkBQ() is dead code in non-GRAN/PAR

ghc/rts/Sanity.c

index 8e0093d..97abd3c 100644 (file)
@@ -886,30 +886,6 @@ checkBQ (StgTSO *bqe, StgClosure *closure)
     }
   } while (!end);
 }
-#else
-void
-checkBQ (StgTSO *bqe, StgClosure *closure) 
-{  
-  rtsBool end = rtsFalse;
-  StgInfoTable *info = get_itbl(closure);
-
-  ASSERT(info->type == MVAR);
-
-  do {
-    switch (get_itbl(bqe)->type) {
-    case TSO:
-      checkClosure((StgClosure *)bqe);
-      bqe = bqe->link;
-      end = (bqe==END_TSO_QUEUE);
-      break;
-
-    default:
-      barf("checkBQ: strange closure %d in blocking queue for closure %p\n", 
-          get_itbl(bqe)->type, closure, info->type);
-    }
-  } while (!end);
-}
-    
 #endif