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.
This commit is contained in:
Eric Holk
2011-07-25 15:02:43 -07:00
parent 117e251733
commit e697a52359
5 changed files with 27 additions and 6 deletions

View File

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