: <i>Memory leak with creating and destroying threads from C</i> plus 4 other changes
by
.
D 2026-10-12T19:24:27.254
J icomment This\sis\snot\sa\sleak\sin\sTcl.\sThe\sthreads\sare\screated\swith\n<code>pthread_create()</code>\sbut\snever\sjoined\sor\sdetached,\sso\seach\sfinished\nthread\skeeps\sits\sstack\s(8\sMB\sof\saddress\sspace)\suntil\sit\sis\sjoined.\sWith\n<code>pthread_detach()</code>\safter\s<code>pthread_create()</code>\smemory\sstays\nflat\sover\s6000\sthreads\swith\s9.1.\s<code>Tcl_CreateThread()</code>\screates\ndetached\sthreads,\swhich\sis\swhy\sthe\svariant\susing\sit\sdoes\snot\sleak.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
J resolution Invalid
J status Closed
K 05d9a601e45db736729ed5b7a260dd675f245bb4
U serhiy.storchaka
Z 4366604abcfb86a4426389f275015847