FreeRTOS-Kernel/portable/ThirdParty/GCC
Gaurav-Aggarwal-AWS 32e581636f
Delete thread key on process exit (#1297)
Previously, the shared thread key was deleted in xPortStartScheduler
after scheduler was ended. This created a race condition where
prvThreadKeyDestructor (responsible for freeing thread-specific heap
memory) would not be called if xPortStartScheduler deleted the key
before the last task deletion, as destructors are not invoked after key
deletion (see https://github.com/walac/glibc/blob/master/nptl/pthread_create.c#L145-L150).

Move thread key deletion to process exit to ensure all thread-specific
memory is properly freed.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2025-07-24 11:07:27 +05:30
..
ARC_EM_HS Fix spelling typos (#1168) 2024-11-01 10:09:49 -07:00
ARC_v1 Fix spelling typos (#1168) 2024-11-01 10:09:49 -07:00
ARM_TFM Update download locations to outside repository content (#1280) 2025-06-05 23:23:47 +05:30
ATmega Use Regex for Copyright Year in Header Check (#1002) 2024-02-26 09:26:42 -08:00
Posix Delete thread key on process exit (#1297) 2025-07-24 11:07:27 +05:30
RISC-V Normalize line endings and whitespace in source files 2022-11-29 15:38:47 -08:00
RP2040 RP2040: update FreeRTOS_Kernel_import.cmake to match the newer version in Community-Supported-Ports (#1243) 2025-02-10 11:02:36 +05:30
Xtensa_ESP32 Move configASSERT default definition above before including portable.h. (#1185) 2024-11-04 16:35:52 +05:30