about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp14
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) {