Upgrade session before quota exceedes

Denis Huber huber.denis at ...435...
Thu Aug 25 17:07:09 CEST 2016


No problem, thanks for the fast answer and the patch :)

On 25.08.2016 16:32, Norman Feske wrote:
> Hi Denis,
>
>> Alloc avail: 0
>> [init -> rm_stresser] Round 5
>> Quota exceeded! amount=61440, size=8192, consumed=61440
>> Uncaught exception of type 'Genode::Allocator::Out_of_memory'
>> Warning: abort called - thread: entrypoint
>>
>> Is there an easy way to upgrade a session's RAM quota before allocating
>> objects with no available RAM?
>
> you did everything correctly. The problem is actually that core's RM
> service misses to catch the 'Allocator::Out_of_memory' exception. The
> attached patch rectifies this. In your test program, you need to catch
> 'Region_map::Out_of_metadata' instead of 'Allocator::Out_of_memory'.
> With this minor change, the test passes.
>
> Thank you very much for pointing us to this problem and for the
> super-convenient test case! :-)
>
> Cheers
> Norman
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> genode-main mailing list
> genode-main at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>




More information about the users mailing list