|
@@ -77,9 +77,11 @@ void *sys_alloc(allocator_t *allocator, heap_t *heap, size_t size) {
|
|
}
|
|
}
|
|
|
|
|
|
#ifndef WITH_MEMORY_SPACE_AWARENESS
|
|
#ifndef WITH_MEMORY_SPACE_AWARENESS
|
|
|
|
+
|
|
if(size + HEADER_SIZE < 4096) {
|
|
if(size + HEADER_SIZE < 4096) {
|
|
allocation_size = 4096;
|
|
allocation_size = 4096;
|
|
} else {
|
|
} else {
|
|
|
|
+
|
|
allocation_size = ((size + HEADER_SIZE) / 4096 + 1) * 4096;
|
|
allocation_size = ((size + HEADER_SIZE) / 4096 + 1) * 4096;
|
|
}
|
|
}
|
|
#ifdef WITH_MMAP
|
|
#ifdef WITH_MMAP
|