mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
init test: reduce RAM demand of app/dummy
The addition of the 'Cap_consumer' feature to app/dummy increased the static RAM demand of the component to a point where 1 MiB no longer suffices on sel4 (on this kernel, the base library uses a larger amount of statically allocated data compared to the others). The tweaks enable init.run and init_loop.run to work on sel4 on x86-64.
This commit is contained in:
parent
d1524ba0b8
commit
d4c22654e1
@ -36,7 +36,7 @@ struct Dummy::Log_service
|
||||
{
|
||||
Env &_env;
|
||||
|
||||
Heap _heap { _env.ram(), _env.rm() };
|
||||
Sliced_heap _heap { _env.ram(), _env.rm() };
|
||||
|
||||
bool const _verbose;
|
||||
|
||||
@ -208,7 +208,7 @@ struct Dummy::Cap_consumer
|
||||
* Statically allocate an array of RPC objects to avoid RAM allocations
|
||||
* as side effect during the cap-consume step.
|
||||
*/
|
||||
static constexpr size_t MAX = 200;
|
||||
static constexpr size_t MAX = 100;
|
||||
|
||||
Constructible<Object> _objects[MAX];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user