From 6d79d033806cb3f78a52c7927c59951756bb9834 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Wed, 22 Mar 2017 21:43:21 +0100 Subject: [PATCH] heap: align allocations to 16 byte addresses Issue #754 --- repos/base/src/lib/base/heap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/base/src/lib/base/heap.cc b/repos/base/src/lib/base/heap.cc index 2c71fdde66..59421eef97 100644 --- a/repos/base/src/lib/base/heap.cc +++ b/repos/base/src/lib/base/heap.cc @@ -135,7 +135,7 @@ Heap::Dataspace *Heap::_allocate_dataspace(size_t size, bool enforce_separate_me bool Heap::_try_local_alloc(size_t size, void **out_addr) { - if (_alloc->alloc_aligned(size, out_addr, log2(sizeof(addr_t))).error()) + if (_alloc->alloc_aligned(size, out_addr, log2(16)).error()) return false; _quota_used += size;