|
|||||||||||
Technical Support Support Resources
Product Information |
ARMCC: Heap functions are not thread safe in ArmClang compiler AC6Information in this knowledgebase article applies to:
SYMPTOMI noticed that my heap is getting corrupted when using malloc() and free() in mutiple threads using the Arm Compiler 6. It seems like that the _mutex_* functions that should protect the heap functions are getting optimized out. This did not occur with Arm Compiler 5. CAUSEThe _mutex_*() functions that are implemented in the CMSIS RTX library are being removed from the link by unused section elimination when using the ArmClang compiler/linker RESOLUTIONIn the "Options for Target..." - "Linker" tab, enter the following in the Misc Controls window: --keep=_mutex_* MORE INFORMATION
Last Reviewed: Thursday, October 8, 2020 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.