mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 02:01:38 +00:00
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:
parent
cc98cef770
commit
4e4cdacab3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user