From 90aa4ef6b575d5aae2760622e18dbb60d3d54c21 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Sat, 28 Sep 2013 19:49:32 +0200 Subject: [PATCH] core: Don't account RAM metadata to RAM quota The meta data for allocations should be accounted to the session quota instead of the RAM accont managed by the session. --- base/src/core/include/ram_session_component.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/src/core/include/ram_session_component.h b/base/src/core/include/ram_session_component.h index b9c87274e..5d56bfd66 100644 --- a/base/src/core/include/ram_session_component.h +++ b/base/src/core/include/ram_session_component.h @@ -73,8 +73,7 @@ namespace Genode { /** * Return portion of RAM quota that is currently in use */ - size_t used_quota() { - return _ds_slab.consumed() + _payload + sizeof(*this); } + size_t used_quota() { return _payload; } /** * Free dataspace