heap: align allocations to 16 byte addresses

Issue #754
This commit is contained in:
Alexander Boettcher 2017-03-22 21:43:21 +01:00 committed by Christian Helmuth
parent 307dd5768c
commit 6d79d03380

View File

@ -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;