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:
Norman Feske 2016-12-02 13:03:35 +01:00
parent 28f5688dcf
commit a387d68c2c

View File

@ -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; }