base: align metadata allocation in heap at 16 byte

Issue #754
This commit is contained in:
Christian Helmuth 2017-06-27 13:47:59 +02:00 committed by Norman Feske
parent a9da97bc4a
commit c18dffa9fa

View File

@ -118,7 +118,7 @@ Heap::Dataspace *Heap::_allocate_dataspace(size_t size, bool enforce_separate_me
_alloc->add_range((addr_t)ds_addr, size);
/* allocate the Dataspace structure */
if (_alloc->alloc_aligned(sizeof(Heap::Dataspace), &ds_meta_data_addr, log2(sizeof(addr_t))).error()) {
if (_alloc->alloc_aligned(sizeof(Heap::Dataspace), &ds_meta_data_addr, log2(16)).error()) {
warning("could not allocate dataspace meta data - this should never happen");
return 0;
}