Tcl Source Code

View Ticket
Login
Ticket UUID: 599428
Title: (win) leak under USE_THREAD_ALLOC
Type: Bug Created on: 2002-08-23 21:32:18
Submitter: msofer Assigned to: andreas_kupries
Subsystem: 49. Threading Severity:
Priority: 9 Immediate Last modified: 2002-08-30 02:04:13
Status: Closed Closed by: andreas_kupries
Resolution: Fixed Closed on: 2002-08-29 19:04:13
Version: None
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:
msofer added on 2002-08-24 04:32:19:

File Added - 29678: tclWinThrd.patch

andreas_kupries added on 2002-08-30 02:04:13:
Logged In: YES 
user_id=75003

Patch applied to head.

Attachments: