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:
Norman Feske 2018-06-12 11:18:44 +02:00 committed by Christian Helmuth
parent d1524ba0b8
commit d4c22654e1

View File

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