OVMS3-idf/components/heap
Deomid Ryabkov 4b7eb1792e Try to merge tail with next block when splitting
When splitting a memory block, check if the next block is free.
If it is, then just extend it upwards instead of creating a new block.
This fixes a bug where when shrinking existing allocations would result in irreversible free space fragmentation.

When testing on the host, test all the poisoning configurations.
2018-04-03 12:30:52 +10:00
..
include heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
test heap: Fix bug when realloc moves data between heaps 2018-02-09 16:10:52 +08:00
test_multi_heap_host Try to merge tail with next block when splitting 2018-04-03 12:30:52 +10:00
component.mk heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
heap_caps.c heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
heap_caps_init.c component/heap : fix heap_region_add check bug 2017-11-16 11:10:13 +08:00
heap_private.h heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
heap_task_info.c heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
heap_trace.c heap_trace: fix bug in realloc for copying trace record 2017-12-07 18:20:23 +05:30
Kconfig heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
multi_heap.c Try to merge tail with next block when splitting 2018-04-03 12:30:52 +10:00
multi_heap_config.h Try to merge tail with next block when splitting 2018-04-03 12:30:52 +10:00
multi_heap_internal.h heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
multi_heap_platform.h heap: Add task tracking option for heap usage monitoring 2018-02-20 10:32:06 +11:00
multi_heap_poisoning.c Try to merge tail with next block when splitting 2018-04-03 12:30:52 +10:00