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_kernel.h | |
| 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_kernel.h')
| -rw-r--r-- | src/rt/rust_kernel.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rt/rust_kernel.h b/src/rt/rust_kernel.h index f60987acae5..3d64e57d9f9 100644 --- a/src/rt/rust_kernel.h +++ b/src/rt/rust_kernel.h @@ -66,7 +66,9 @@ public: void win32_require(LPCTSTR fn, BOOL ok); #endif - rust_task_id create_task(rust_task *spawner, const char *name); + rust_task_id create_task(rust_task *spawner, const char *name, + size_t init_stack_size); + rust_task_id create_task(rust_task * spawner, const char *name); rust_task *get_task_by_id(rust_task_id id); void release_task_id(rust_task_id tid); void set_exit_status(int code); |
