1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

Kernel: Allow userspace stacks to grow up to 4 MB by default

Make userspace stacks lazily allocated and allow them to grow up to
4 megabytes. This avoids a lot of silly crashes we were running into
with software expecting much larger stacks. :^)
This commit is contained in:
Andreas Kling 2019-10-31 13:57:07 +01:00
parent 6bd1879189
commit 904c871727
2 changed files with 3 additions and 3 deletions

View file

@ -313,7 +313,7 @@ public:
}
static constexpr u32 default_kernel_stack_size = 65536;
static constexpr u32 default_userspace_stack_size = 65536;
static constexpr u32 default_userspace_stack_size = 4 * MB;
private:
IntrusiveListNode m_runnable_list_node;