diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-29 21:26:21 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-29 21:27:37 -0800 |
| commit | fa13fd9d64c3ed60a65e5897467b2d3742aa933f (patch) | |
| tree | be018b45197fc9d9dc561d3fd8807a00203540bf /src/rt/rust_task.cpp | |
| parent | cad4918b2af71b0d35f263ac168c442f8d266600 (diff) | |
| download | rust-fa13fd9d64c3ed60a65e5897467b2d3742aa933f.tar.gz rust-fa13fd9d64c3ed60a65e5897467b2d3742aa933f.zip | |
rt: Remove set_min_stack
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index d6f43ca0794..1bf62e42f01 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -65,18 +65,6 @@ const uint8_t stack_canary[] = {0xAB, 0xCD, 0xAB, 0xCD, 0xAB, 0xCD, 0xAB, 0xCD, 0xAB, 0xCD, 0xAB, 0xCD}; -// Stack size -size_t g_custom_min_stack_size = 0; - -static size_t -get_min_stk_size(size_t default_size) { - if (g_custom_min_stack_size != 0) { - return g_custom_min_stack_size; - } else { - return default_size; - } -} - static size_t get_next_stk_size(rust_scheduler *sched, rust_task *task, size_t min, size_t current, size_t requested) { @@ -157,7 +145,7 @@ new_stk(rust_scheduler *sched, rust_task *task, size_t requested_sz) } // The minimum stack size, in bytes, of a Rust stack, excluding red zone - size_t min_sz = get_min_stk_size(sched->min_stack_size); + size_t min_sz = sched->min_stack_size; // Try to reuse an existing stack segment if (task->stk != NULL && task->stk->prev != NULL) { |
