add an assertion
authorSimon Marlow <marlowsd@gmail.com>
Thu, 23 Oct 2008 15:45:51 +0000 (15:45 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 23 Oct 2008 15:45:51 +0000 (15:45 +0000)
rts/Schedule.c

index e17c653..2e9d0dd 100644 (file)
@@ -479,6 +479,7 @@ run_thread:
 
     ASSERT_FULL_CAPABILITY_INVARIANTS(cap,task);
     ASSERT(t->cap == cap);
+    ASSERT(t->bound ? t->bound->cap == cap : 1);
 
     prev_what_next = t->what_next;