diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-21 14:47:48 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-21 19:10:32 -0700 |
| commit | f5f6135fd0b2ed68ee0b0836967a31d8375523e0 (patch) | |
| tree | b5ba72de9b642fc3849775450a02acb978a56bc9 /src/rt/rust.cpp | |
| parent | 0639b67290cfc631fe2728a587380f3a97fd7408 (diff) | |
| download | rust-f5f6135fd0b2ed68ee0b0836967a31d8375523e0.tar.gz rust-f5f6135fd0b2ed68ee0b0836967a31d8375523e0.zip | |
rt: Stop using large stacks for the main task
Diffstat (limited to 'src/rt/rust.cpp')
| -rw-r--r-- | src/rt/rust.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 3f5f083650f..e647e053f7c 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -67,8 +67,6 @@ command_line_args : public kernel_owned<command_line_args> int check_claims = 0; -const size_t MAIN_STACK_SIZE = 1024*1024; - extern "C" CDECL int rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) { @@ -81,7 +79,7 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) { rust_kernel *kernel = new rust_kernel(srv); rust_sched_id sched_id = kernel->create_scheduler(env->num_sched_threads); rust_scheduler *sched = kernel->get_scheduler_by_id(sched_id); - rust_task *root_task = sched->create_task(NULL, "main", MAIN_STACK_SIZE); + rust_task *root_task = sched->create_task(NULL, "main"); rust_task_thread *thread = root_task->thread; command_line_args *args = new (kernel, "main command line args") |
