Overview
| Artifact ID: | 154544858c38aa2afeafeb769ecfdb988d8bf791 |
|---|---|
| Ticket: | 05d9a601e45db736729ed5b7a260dd675f245bb4
Memory leak with creating and destroying threads from C |
| User & Date: | sebres on 2016-04-04 18:12:29 |
Changes
- icomment:
I can reproduce a leak with our thread module and from my multithreaded apps (don't tried your code)... Possibly, you have something wrong in your c-code (resp. you miss something that does Tcl_AppInit, Tcl_Main, other subsystems resp. some events in Tcl_init, etc.)... For example did you still have a leak, if you will create a new thread with "Tcl_CreateThread" instead of "pthread_create"? Second, simply test it using thread module, just from your tclsh like here: load thread27 time { puts [time { thread::create {thread::release} } 1000] } 10 As already said, I see no leak at all, if I do that with current 8.5, 8.6 and 8.7 (trunk)... - login: "sebres"
- mimetype: "text/plain"