summary refs log tree commit diff
path: root/src/rt/rust_task_thread.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-21 14:47:48 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-21 19:10:32 -0700
commitf5f6135fd0b2ed68ee0b0836967a31d8375523e0 (patch)
treeb5ba72de9b642fc3849775450a02acb978a56bc9 /src/rt/rust_task_thread.cpp
parent0639b67290cfc631fe2728a587380f3a97fd7408 (diff)
downloadrust-f5f6135fd0b2ed68ee0b0836967a31d8375523e0.tar.gz
rust-f5f6135fd0b2ed68ee0b0836967a31d8375523e0.zip
rt: Stop using large stacks for the main task
Diffstat (limited to 'src/rt/rust_task_thread.cpp')
-rw-r--r--src/rt/rust_task_thread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp
index 11b4c985138..658dff23d27 100644
--- a/src/rt/rust_task_thread.cpp
+++ b/src/rt/rust_task_thread.cpp
@@ -260,11 +260,11 @@ rust_task_thread::start_main_loop() {
 }
 
 rust_task *
-rust_task_thread::create_task(rust_task *spawner, const char *name,
-                            size_t init_stack_sz) {
+rust_task_thread::create_task(rust_task *spawner, const char *name) {
     rust_task *task =
         new (this->kernel, "rust_task")
-        rust_task (this, task_state_newborn, spawner, name, init_stack_sz);
+        rust_task (this, task_state_newborn,
+                   spawner, name, env->min_stack_size);
     DLOG(this, task, "created task: " PTR ", spawner: %s, name: %s",
                         task, spawner ? spawner->name : "null", name);