non-threaded RTS: don't assume deadlock if there are signal handlers to run
authorSimon Marlow <marlowsd@gmail.com>
Tue, 15 Jul 2008 13:03:16 +0000 (13:03 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 15 Jul 2008 13:03:16 +0000 (13:03 +0000)
rts/Schedule.c

index fd84fde..ce6a1db 100644 (file)
@@ -1005,6 +1005,8 @@ scheduleDetectDeadlock (Capability *cap, Task *task)
 
            // either we have threads to run, or we were interrupted:
            ASSERT(!emptyRunQueue(cap) || sched_state >= SCHED_INTERRUPTING);
+
+            return;
        }
 #endif