don't check for stack underflow if we just had an overflow
authorSimon Marlow <marlowsd@gmail.com>
Wed, 10 Jun 2009 10:47:48 +0000 (10:47 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 10 Jun 2009 10:47:48 +0000 (10:47 +0000)
rts/Schedule.c

index 51a8d2a..c840c78 100644 (file)
@@ -584,7 +584,9 @@ run_thread:
     
     schedulePostRunThread(cap,t);
 
-    t = threadStackUnderflow(task,t);
+    if (ret != StackOverflow) {
+        t = threadStackUnderflow(task,t);
+    }
 
     ready_to_gc = rtsFalse;