You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you sure that you are observing a memory leak caused by spawning (std::thread::spawn) the new thread, and NOT observing the allocation of the thread-local memory for the ThreadSpawnConfig keys itself?
Two experiments you could do to confirm/deny:
Experiment 1: Do not call spawn but still call the ThreadSpawnConfig setup. If you still see a memory "leak", you are observing the ThreadSpawnConfig local storage allocation in heap, rather than anything else.
Experiment 2: Do what you do now, but offload the ThreadSpawnConfig as well the subsequent std::thread::spawn call in another, "outer" thread, which is also spawned with std::thread::spawn, but does not have a ThreadSpawnConfig setup. Once both threads are joined, you should not see a "memory leak" anymore, as the ThreadSpawnConfig local storage of the outer thread should die when this thread is joined.
Bug description
If a FreeRTOS task is created with ThreadSpawnConfig, it leaks 160 bytes in memory when cle
To Reproduce
and in print_memory_info,
Expected behavior
It to clean up the task fully
Environment
The text was updated successfully, but these errors were encountered: