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