[commit: ghc] master: Do not copy stack after stack overflow, fixes #8435 (9fb30cb)

git at git.haskell.org git
Sat Oct 12 03:02:58 UTC 2013


Repository : ssh://git at git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/9fb30cbcbc02086c5c6eb3942acdfdcad8331cb9/ghc

>---------------------------------------------------------------

commit 9fb30cbcbc02086c5c6eb3942acdfdcad8331cb9
Author: Edward Z. Yang <ezyang at mit.edu>
Date:   Fri Oct 11 17:01:00 2013 -0700

    Do not copy stack after stack overflow, fixes #8435
    
    Signed-off-by: Edward Z. Yang <ezyang at mit.edu>


>---------------------------------------------------------------

9fb30cbcbc02086c5c6eb3942acdfdcad8331cb9
 rts/Threads.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/rts/Threads.c b/rts/Threads.c
index 1c45000..8ee8d4f 100644
--- a/rts/Threads.c
+++ b/rts/Threads.c
@@ -536,6 +536,7 @@ threadStackOverflow (Capability *cap, StgTSO *tso)
         } else {
             // Send this thread the StackOverflow exception
             throwToSingleThreaded(cap, tso, (StgClosure *)stackOverflow_closure);
+            return;
         }
     }
 




More information about the ghc-commits mailing list