Memory heap fragmentation

atlascoder
Posts: 51
Joined: Wed Aug 30, 2017 12:36 pm

Memory heap fragmentation

Postby atlascoder » Thu Aug 02, 2018 9:53 pm

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?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Memory heap fragmentation

Postby WiFive » Thu Aug 02, 2018 10:51 pm


atlascoder
Posts: 51
Joined: Wed Aug 30, 2017 12:36 pm

Re: Memory heap fragmentation

Postby atlascoder » Fri Aug 03, 2018 2:36 pm

Yes, sorry, it's duplication. Thanks for the reference!

Who is online

Users browsing this forum: No registered users and 110 guests