root/component: log error on Out_of_memory

Servers should account and handle this condition locally.
This commit is contained in:
Emery Hemingway 2017-01-30 15:23:13 +01:00 committed by Norman Feske
parent d1df1dbd87
commit 92978933c7

View File

@ -155,7 +155,10 @@ class Genode::Root_component : public Rpc_object<Typed_root<SESSION_TYPE> >,
SESSION_TYPE *s = 0;
try { s = _create_session(adjusted_args, affinity); }
catch (Allocator::Out_of_memory) { throw Root::Unavailable(); }
catch (Allocator::Out_of_memory) {
error("out of memory for session creation, '", args, "'");
throw Root::Unavailable();
}
_ep->manage(s);