summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvasiljevic <zv@archiware.com>2003-02-22 09:23:15 (GMT)
committervasiljevic <zv@archiware.com>2003-02-22 09:23:15 (GMT)
commite182f056b3f80eac465acbf99fd9417d4e744cbb (patch)
tree4ec30866087e1c4de405b39718bc7083807860c1
parent4e1ccdabf4b8a93597bfdeb398a29bc9b4f3fe92 (diff)
downloadtcl-e182f056b3f80eac465acbf99fd9417d4e744cbb.zip
tcl-e182f056b3f80eac465acbf99fd9417d4e744cbb.tar.gz
tcl-e182f056b3f80eac465acbf99fd9417d4e744cbb.tar.bz2
Fix for Bug #571002
-rw-r--r--ChangeLog4
-rw-r--r--generic/tclEvent.c10
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6c86de3..b489a4b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-22 Zoran Vasiljevic <zoran@archiwrae.com>
+
+ * generic/tclEvent.c (Tcl_FinalizeThread): Fix [Bug #571002]
+
2003-02-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* tests/binary.test (binary-44.[34]):
diff --git a/generic/tclEvent.c b/generic/tclEvent.c
index df1b17a..60b7d7f 100644
--- a/generic/tclEvent.c
+++ b/generic/tclEvent.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclEvent.c,v 1.27 2003/02/04 17:06:49 vincentdarley Exp $
+ * RCS: @(#) $Id: tclEvent.c,v 1.28 2003/02/22 09:23:16 vasiljevic Exp $
*/
#include "tclInt.h"
@@ -928,13 +928,19 @@ Tcl_FinalizeThread()
TclFinalizeIOSubsystem();
TclFinalizeNotifier();
TclFinalizeAsync();
+ }
/*
* Blow away all thread local storage blocks.
+ *
+ * Note that Tcl API allows creation of threads which do not use any
+ * Tcl interp or other Tcl subsytems. Those threads might, however,
+ * use thread local storage, so we must unconditionally finalize it.
+ *
+ * Fix [Bug #571002]
*/
TclFinalizeThreadData();
- }
}
/*