|
@@ -24,8 +24,10 @@ allocator_t *dmm_init(void) {
|
|
|
// Custom number of fixed lists and their initialization
|
|
|
// 2 first ones with 32, 64, 128 and 256 (4 fixed lists per heap)
|
|
|
// 2 last ones with 64 and 256 (2 fixed lists per heap)
|
|
|
+ // 2 * 4 + 2 * 2 = 12 maptable nodes
|
|
|
current_heap = &main_allocator->heaps[0];
|
|
|
maptablenode = (MAPTABLE_NODE *) sbrk(12*(sizeof(MAPTABLE_NODE)));
|
|
|
+
|
|
|
maptablenode->size = 32;
|
|
|
maptablenode->fixed_list_head = NULL;
|
|
|
maptablenode->next = maptablenode+1;
|