Browse Source

Print statistics on no free space errors.

Ioannis Koutras 13 years ago
parent
commit
31c30c9dc0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/sys_alloc.c

+ 1 - 0
src/sys_alloc.c

@@ -69,6 +69,7 @@ void *sys_alloc(allocator_t *allocator, heap_t *heap, size_t size) {
         allocator->remaining_size -= allocation_size;
     } else {
         printf("No more free space.\n");
+        print_stats(allocator);
         return NULL;
     }
 #endif /* WITH_MEMORY_SPACE_AWARENESS */