From cf7a0821b5c79c8b998ae66d25b9c5489fe13bab Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 12 Apr 2022 15:13:18 +0200 Subject: [PATCH] Kernel: Increase the default userspace stack size to 4 MiB This makes the main thread stack size the same as the default stack size when creating new threads. --- Kernel/Thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 7865924051..42de69c8ab 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -1025,7 +1025,7 @@ public: static IterationDecision for_each(Callback); static constexpr u32 default_kernel_stack_size = 65536; - static constexpr u32 default_userspace_stack_size = 1 * MiB; + static constexpr u32 default_userspace_stack_size = 4 * MiB; u64 time_in_user() const { return m_total_time_scheduled_user; } u64 time_in_kernel() const { return m_total_time_scheduled_kernel; }