memalloc
memalloc copied to clipboard
Artifacts of that Memory Management Tsoding Session
Added a linked list implementation - sorry to mess up some files: 1) Renamed heap.c to heap_using_chunk_lists 2) Added linked list implementation 3) Totally decoupled implementation (previous PR left some...
Hi (Privet). I watched your youtube video, which is very interesting. Would want to try to implement the heap allocation management using linked list or tree. For this raising this...
Uses binary search to find chunks
https://github.com/tsoding/memalloc/blob/f17f6e826c92d265614ab6d6f6a63dc8731720cf/heap.c#L17 should not this be `.size = HEAP_CAP_WORDS` ? All other comparisons of `chunk.size` in the code are against WORDS, not bytes. Example: `const size_t tail_size_words = chunk.size - size_words;`...