Skip to content
Tcl Source Code View Ticket
Login

View Ticket

(win) leak under USE_THREAD_ALLOC

Closed / Fixed599428ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-08-23 21:32:18
As a follow-up to
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&th=dfee45af9d044335&rnum=2
Sven Sass mentioned privately that the use of 'once' is
preventing all threads but one to free some of its data
on exit.

My impression from looking at TclpFinalizeThreadData()
in win/tclWinThrd.c is that this is probably correct. I
attach a patch for review that may solve the issue.

Sidenote: if win does not have a way to define an exit
handler for each key, maybe the Tcl library should
emulate the pthread way?
msoferplain2002-08-24 04:32:19
File Added - 29678: tclWinThrd.patch
msofer Ticket [599428ffff]: 1 change [History diff]2002-08-26 21:25:10
andreas_kupriesplain2002-08-30 02:04:13
Logged In: YES 
user_id=75003

Patch applied to head.
Log in (anonymous is fine) to add a comment.

Attachments: