From 6d8330afb6c925d1092f27919f61d4ce6a3fb1d4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 17 Oct 2013 01:40:33 -0700 Subject: Use __morestack to detect stack overflow This commit resumes management of the stack boundaries and limits when switching between tasks. This additionally leverages the __morestack function to run code on "stack overflow". The current behavior is to abort the process, but this is probably not the best behavior in the long term (for deails, see the comment I wrote up in the stack exhaustion routine). --- src/rt/rust_test_helpers.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/rt/rust_test_helpers.cpp') diff --git a/src/rt/rust_test_helpers.cpp b/src/rt/rust_test_helpers.cpp index f10a1f36938..3c6e2d68c2f 100644 --- a/src/rt/rust_test_helpers.cpp +++ b/src/rt/rust_test_helpers.cpp @@ -11,7 +11,6 @@ // Helper functions used only in tests #include "rust_util.h" -#include "sync/rust_thread.h" #include "sync/lock_and_signal.h" // These functions are used in the unit tests for C ABI calls. -- cgit 1.4.1-3-g733a5