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).
This commit is contained in:
Alex Crichton
2013-10-17 01:40:33 -07:00
parent d773a024a2
commit 6d8330afb6
57 changed files with 500 additions and 1551 deletions

View File

@@ -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.