From 0d01fd829f9f29caca2e91c57a92f1c05e5e3b65 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 27 Mar 2013 13:35:17 +0100 Subject: [PATCH] heap: Reduce maximum chunk size to 1 MiB on 32bit With the previous maximum, the heap would allocate chunks of up to 4 MiB, which may lead to overly large slack memory. --- base/include/base/heap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/include/base/heap.h b/base/include/base/heap.h index aa9247930e..ba0368e528 100644 --- a/base/include/base/heap.h +++ b/base/include/base/heap.h @@ -33,8 +33,8 @@ namespace Genode { private: enum { - MIN_CHUNK_SIZE = 4*1024, /* in machine words */ - MAX_CHUNK_SIZE = 1024*1024 + MIN_CHUNK_SIZE = 4*1024, /* in machine words */ + MAX_CHUNK_SIZE = 256*1024 }; class Dataspace : public List::Element