Overview
| Artifact ID: | 69b35d8cd4d5dd19d66841a9ce22b5bcf0f7a7f04e1692928acbb20f02ff6e6d |
|---|---|
| Ticket: | 3381371fffffffffffffffffffffffffffffffff
possible memory leak? |
| User & Date: | serhiy.storchaka on 2026-10-12 15:23:29 |
Changes
- icomment:
On Linux I cannot reproduce this with 8.6.17, 9.0.3 and 9.1 and Thread 3.0.4: the memory stays flat over 100000 threads. On Windows each joinable thread which exits before it is joined leaks about 9 KB: <code>TclSignalExitThread()</code> creates the mutex of the join record in the exiting thread, after its allocator cache has been finalized, so a new cache is created and never freed. Proposed fix in branch [/timeline?r=win-join-mutex-leak|win-join-mutex-leak]: create the mutex in <code>TclRememberJoinableThread()</code>.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"