about summary refs log tree commit diff
path: root/src/rt/rust_test_helpers.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-10-17 01:40:33 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-10-19 09:43:31 -0700
commit6d8330afb6c925d1092f27919f61d4ce6a3fb1d4 (patch)
tree72a6ff826ffcd13afe10a79cc4a4a78384cf2f16 /src/rt/rust_test_helpers.cpp
parentd773a024a2976f2759235551a52101cd08b37cce (diff)
downloadrust-6d8330afb6c925d1092f27919f61d4ce6a3fb1d4.tar.gz
rust-6d8330afb6c925d1092f27919f61d4ce6a3fb1d4.zip
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).
Diffstat (limited to 'src/rt/rust_test_helpers.cpp')
-rw-r--r--src/rt/rust_test_helpers.cpp1
1 files changed, 0 insertions, 1 deletions
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.