From e697a52359874c2b7387be96e664b1f94b14255b Mon Sep 17 00:00:00 2001 From: Eric Holk Date: Mon, 25 Jul 2011 15:02:43 -0700 Subject: Adding a function to stdlib to set the min stack size, for programs that absolutely will not succeed with a large default stack. This should be removed once we have stack grown working. Also updated word-count to succeed under the new test framework. --- src/rt/rust_builtin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/rt/rust_builtin.cpp') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index eefc6dac8ce..4870c9fe545 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -856,6 +856,13 @@ clone_chan(rust_task *task, rust_chan *chan) { return chan->clone(task); } +// defined in rust_task.cpp +extern size_t g_min_stack_size; +extern "C" CDECL void +set_min_stack(rust_task *task, uintptr_t stack_size) { + g_min_stack_size = stack_size; +} + // // Local Variables: // mode: C++ -- cgit 1.4.1-3-g733a5