Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented thread-safe realloc and calloc #744

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

godario
Copy link

@godario godario commented Oct 4, 2022

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!

Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look great, thank you, and sorry for the late review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants