Page 1 of 1

Memory heap fragmentation

Posted: Thu Aug 02, 2018 9:53 pm
by atlascoder
Hello!

FreeRTOS has several approaches to manage heap memory https://www.freertos.org/a00111.html

I've found in

Code: Select all

freertos/portable.h
that pvPortMalloc is just an alias for malloc from newlib:

Code: Select all

#define pvPortMalloc malloc
So, the question is - does the current solution support memory defragmentation, like coalescing free contiguous blocks?

Re: Memory heap fragmentation

Posted: Thu Aug 02, 2018 10:51 pm
by WiFive

Re: Memory heap fragmentation

Posted: Fri Aug 03, 2018 2:36 pm
by atlascoder
Yes, sorry, it's duplication. Thanks for the reference!