diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-29 21:20:36 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-29 21:20:39 -0800 |
| commit | 6548cdd59beca24a90f41d6507cb615e67828b07 (patch) | |
| tree | 15e0547e2c14ee150e35d4c78d4922b85102cb5f /src/rt/rust_scheduler.cpp | |
| parent | 361f90e618c081afe2fa8b0a67370610781e413e (diff) | |
| download | rust-6548cdd59beca24a90f41d6507cb615e67828b07.tar.gz rust-6548cdd59beca24a90f41d6507cb615e67828b07.zip | |
rt: Make the initial segment of the main task's stack 1MB
This is a trick to fool microbenchmarks. Closes #1681
Diffstat (limited to 'src/rt/rust_scheduler.cpp')
| -rw-r--r-- | src/rt/rust_scheduler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rt/rust_scheduler.cpp b/src/rt/rust_scheduler.cpp index 0b4e35910ac..5b8ae206a74 100644 --- a/src/rt/rust_scheduler.cpp +++ b/src/rt/rust_scheduler.cpp @@ -333,10 +333,11 @@ rust_scheduler::get_cache() { } rust_task * -rust_scheduler::create_task(rust_task *spawner, const char *name) { +rust_scheduler::create_task(rust_task *spawner, const char *name, + size_t init_stack_sz) { rust_task *task = new (this->kernel, "rust_task") - rust_task (this, &newborn_tasks, spawner, name); + rust_task (this, &newborn_tasks, spawner, name, init_stack_sz); DLOG(this, task, "created task: " PTR ", spawner: %s, name: %s", task, spawner ? spawner->name : "null", name); if(spawner) { |
