mfunyu / malloc

Find out the workings behind optimum memory management and recode it, as well as free and realloc.
2 stars 0 forks source link

[bug] is_alloced check failed #51

Closed mfunyu closed 10 months ago

mfunyu commented 10 months ago
$> ./test/benchmark.sh
$> LD_PRELOAD=./libft_malloc.so LD_LIBRARY_PATH=. ./single_test 100

===== Benchmark-tiny: time overhead =====
100 loops of 1000 mallocs and 500 free
-> 100000 mallocs, 50000 frees
Error: pointer being freed was not allocated
Error: pointer being freed was not allocated
Error: pointer being freed was not allocated
Error: pointer being freed was not allocated
Error: pointer being freed was not allocated
Error: pointer being freed was not allocated
Error: pointer being freed was not allocated
Error: pointer being freed was not allocated