base: trim main-thread size to 4/8 KiB

The main thread does no longer execute application code. It is solely
responsible for the initialization of the component's entrypoint and for
retrieving asynchronous notifications. Since the stack usage is no
longer dependent on application-specific code, we can significantly
shrink it to reduce the memory footprint of components. In the worst
case - should the stack overrun - we would observe a page fault because
the stack is placed in the stack area, surrounded by guard pages.
This commit is contained in:
Norman Feske 2016-12-02 14:53:01 +01:00
parent cc98cef770
commit 4e4cdacab3

View File

@ -32,7 +32,7 @@ namespace Genode { extern Region_map * env_stack_area_region_map; }
void prepare_init_main_thread();
enum { MAIN_THREAD_STACK_SIZE = 16UL * 1024 * sizeof(Genode::addr_t) };
enum { MAIN_THREAD_STACK_SIZE = 1024*sizeof(Genode::addr_t) };
/**
* Satisfy crt0.s in static programs, LDSO overrides this symbol