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.
This commit is contained in:
Norman Feske 2013-03-27 13:35:17 +01:00
parent 3968766170
commit 0d01fd829f
1 changed files with 2 additions and 2 deletions

View File

@ -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<Dataspace>::Element