From 92978933c7a828022719e7c2c28f4f5d7ede83f8 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 30 Jan 2017 15:23:13 +0100 Subject: [PATCH] root/component: log error on Out_of_memory Servers should account and handle this condition locally. --- repos/base/include/root/component.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repos/base/include/root/component.h b/repos/base/include/root/component.h index 7bf58d3fcb..d3041cf4e9 100644 --- a/repos/base/include/root/component.h +++ b/repos/base/include/root/component.h @@ -155,7 +155,10 @@ class Genode::Root_component : public Rpc_object >, 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);