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.
18 lines
588 B
Makefile
18 lines
588 B
Makefile
test: test_poisoning_disabled \
|
|
test_poisoning_light \
|
|
test_poisoning_comprehensive
|
|
|
|
test_poisoning_disabled:
|
|
@echo ==== HEAP_POISONING_DISABLED ====
|
|
CPPFLAGS= $(MAKE) -f Makefile.test clean test
|
|
|
|
test_poisoning_light:
|
|
@echo ==== HEAP_POISONING_LIGHT ====
|
|
CPPFLAGS=-DCONFIG_HEAP_POISONING_LIGHT $(MAKE) -f Makefile.test clean test
|
|
|
|
test_poisoning_comprehensive:
|
|
@echo ==== HEAP_POISONING_COMPREHENSIVE ====
|
|
CPPFLAGS=-DCONFIG_HEAP_POISONING_COMPREHENSIVE $(MAKE) -f Makefile.test clean test
|
|
|
|
%:
|
|
CPPFLAGS=-DCONFIG_HEAP_POISONING_COMPREHENSIVE $(MAKE) -f Makefile.test $@
|