Просмотр исходного кода

Initialize the remaining size on memory-space aware allocators.

Ioannis Koutras лет назад: 14
Родитель
Сommit
713e5443bc
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/initialize_allocator.c

+ 1 - 0
src/initialize_allocator.c

@@ -78,6 +78,7 @@ void initialize_allocator(allocator_t *allocator) {
     allocator->border_ptr = NULL;
 #else
     allocator->border_ptr = starting_address;
+    allocator->remaining_size = size;
 #endif /* WITH_MEMORY_SPACE_AWARENESS */
 
     /* Custom number of fixed lists and their initialization