summaryrefslogtreecommitdiffstats
path: root/generic/tclThread.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-05-01 15:16:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-05-01 15:16:37 (GMT)
commitecc261fff02041b94a2ff589a0f7b7191a6cf975 (patch)
treecaab1eb18613bb672c08214eab97c65743f7587e /generic/tclThread.c
parent1f6f16eb0acd800c01eb3eb44390f314983b353f (diff)
parent09c394df7d97291aecb28a07a6c5de3f0814a341 (diff)
downloadtcl-ecc261fff02041b94a2ff589a0f7b7191a6cf975.zip
tcl-ecc261fff02041b94a2ff589a0f7b7191a6cf975.tar.gz
tcl-ecc261fff02041b94a2ff589a0f7b7191a6cf975.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclThread.c')
-rw-r--r--generic/tclThread.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tclThread.c b/generic/tclThread.c
index d1f2691..8c972a8 100644
--- a/generic/tclThread.c
+++ b/generic/tclThread.c
@@ -339,8 +339,9 @@ Tcl_ConditionFinalize(
*
* TclFinalizeThreadData --
*
- * This function cleans up the thread-local storage. This is called once
- * for each thread.
+ * This function cleans up the thread-local storage. Secondary, it cleans
+ * thread alloc cache.
+ * This is called once for each thread before thread exits.
*
* Results:
* None.
@@ -355,6 +356,9 @@ void
TclFinalizeThreadData(void)
{
TclFinalizeThreadDataThread();
+#if defined(TCL_THREADS) && defined(USE_THREAD_ALLOC)
+ TclFinalizeThreadAllocThread();
+#endif
}
/*