You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 71 in heap.c of current version, when the node being freed is the start of the heap, we still need to check whether it can be merged with its next chunk. For example:
p = heap_alloc(heap, 100);
heap_free(heap, p);
After this 2 lines, the whole heap is still splitted into 2 free chunks, but the 2 free chunks should be merged into 1.
The text was updated successfully, but these errors were encountered:
On line 71 in heap.c of current version, when the node being freed is the start of the heap, we still need to check whether it can be merged with its next chunk. For example:
p = heap_alloc(heap, 100);
heap_free(heap, p);
After this 2 lines, the whole heap is still splitted into 2 free chunks, but the 2 free chunks should be merged into 1.
The text was updated successfully, but these errors were encountered: