mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
base: use a default stack size of 64 KiB
This patch replaces the former machine-word-dependent default stack size by the fixed value of 64 KiB which should suffice for components on both 32 and 64 bit. Previously, the default stack size on 64 bit was 128 KiB, which is wasteful. If a component needs more stack than 64 KiB, it can specify a custon stack size by implementing 'Component::stack_size'.
This commit is contained in:
parent
28f5688dcf
commit
a387d68c2c
@ -85,7 +85,4 @@ void Component::construct(Genode::Env &env)
|
||||
|
||||
|
||||
Genode::size_t Component::stack_size() __attribute__((weak));
|
||||
Genode::size_t Component::stack_size()
|
||||
{
|
||||
return 16UL * 1024 * sizeof(Genode::addr_t);
|
||||
}
|
||||
Genode::size_t Component::stack_size() { return 64*1024; }
|
||||
|
Loading…
Reference in New Issue
Block a user