rt: Remove set_min_stack

This commit is contained in:
Brian Anderson
2012-01-29 21:26:21 -08:00
parent cad4918b2a
commit fa13fd9d64
6 changed files with 1 additions and 33 deletions

View File

@@ -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) {