mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
Increase initial block for cxx malloc
This patch avoids the attempt to extend the cxx-local heap during the startup phase of an application. Originally, the static part of the cxx was merely 100 bytes, which did not suffice to run the minimalistic test roottask on seL4.
This commit is contained in:
parent
89e987b22e
commit
c1cb3a6642
@ -37,12 +37,11 @@ using namespace Genode;
|
||||
static Heap *cxx_heap()
|
||||
{
|
||||
/*
|
||||
* Exception frames are small (ca. 100 bytes). Hence, a small static
|
||||
* backing store suffices for the cxx heap partition in the normal
|
||||
* case. The 'env()->ram_session' is used only if the demand exceeds
|
||||
* the capacity of the 'initial_block'.
|
||||
* Exception frames are small. Hence, a small static backing store suffices
|
||||
* for the cxx heap partition in the normal case. The 'env()->ram_session'
|
||||
* is used only if the demand exceeds the capacity of the 'initial_block'.
|
||||
*/
|
||||
static char initial_block[512];
|
||||
static char initial_block[1024*sizeof(long)];
|
||||
static Heap heap(env()->ram_session(), env()->rm_session(),
|
||||
Heap::UNLIMITED, initial_block, sizeof(initial_block));
|
||||
return &heap;
|
||||
|
Loading…
x
Reference in New Issue
Block a user