Hello everybody.
I have noticed that your FreeRTOS implementation only provides the threadsafe version of malloc and free while realloc and calloc are still not threadsafe. In case of very intense use of objects like String (which uses realloc) or in general of realloc/calloc, I noticed some hangs that I solved by implementing pvPortRealloc and pvPortCalloc and then wrapping the real realloc and calloc from the linker.
Hope it can help!
Hello everybody. I have noticed that your FreeRTOS implementation only provides the threadsafe version of
malloc
andfree
whilerealloc
andcalloc
are still not threadsafe. In case of very intense use of objects likeString
(which usesrealloc
) or in general ofrealloc
/calloc
, I noticed some hangs that I solved by implementingpvPortRealloc
andpvPortCalloc
and then wrapping the realrealloc
andcalloc
from the linker. Hope it can help!