Tcl Source Code

View Ticket
Login
Ticket UUID: 599428
Title: (win) leak under USE_THREAD_ALLOC
Type: Bug Version: None
Submitter: msofer Created on: 2002-08-23 21:32:18
Subsystem: 49. Threading Assigned To: andreas_kupries
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2002-08-30 02:04:13
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2002-08-29 19:04:13
Description:
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?
User Comments: andreas_kupries added on 2002-08-30 02:04:13:
Logged In: YES 
user_id=75003

Patch applied to head.

msofer added on 2002-08-24 04:32:19:

File Added - 29678: tclWinThrd.patch

Attachments: