|
@@ -20,9 +20,12 @@ void * custom_ahmalloc(allocator_t* allocator, heap_t* heap, size_t size) {
|
|
|
// Go to the system allocator if none was given
|
|
|
if(allocator == NULL) {
|
|
|
allocator = &systemallocator;
|
|
|
+#ifndef WITH_MEMORY_SPACE_AWARENESS
|
|
|
+ // Currently all the memory space aware allocators are pre-initialized
|
|
|
if(allocator->initialized != true) {
|
|
|
initialize_allocator(allocator);
|
|
|
}
|
|
|
+#endif /* WITH_MEMORY_SPACE_AWARENESS */
|
|
|
}
|
|
|
|
|
|
if(heap == NULL) {
|