MCPcopy Create free account
hub / github.com/CCareaga/heap_allocator / heap_alloc

Function heap_alloc

commented_heap.c:36–97  ·  view source on GitHub ↗

======================================================== this is the allocation function of the heap, it takes the heap struct pointer and the size of the chunk we want. this function will search through the bins until it finds a suitable chunk. it will then split the chunk if neccesary and return the start of the chunk ========================================================

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 8

get_best_fitFunction · 0.85
add_nodeFunction · 0.85
remove_nodeFunction · 0.85
get_bin_indexFunction · 0.70
create_footFunction · 0.70
get_wildernessFunction · 0.70
expandFunction · 0.70
contractFunction · 0.70

Tested by

no test coverage detected