summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadAlloc.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-13 11:17:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-13 11:17:17 (GMT)
commit6ecb7aeabf05319bda235ebe45a174137a391447 (patch)
tree72c201f217d5ffed28bcd7ae7866f687633204d0 /generic/tclThreadAlloc.c
parentd42b3a00d3058b4e6eaabb24196fc0dbb55088dc (diff)
downloadtcl-6ecb7aeabf05319bda235ebe45a174137a391447.zip
tcl-6ecb7aeabf05319bda235ebe45a174137a391447.tar.gz
tcl-6ecb7aeabf05319bda235ebe45a174137a391447.tar.bz2
Patch from Zoran Vasiljevic, fix for missing proper initialization of the threaded allocator in some situations.
Diffstat (limited to 'generic/tclThreadAlloc.c')
-rw-r--r--generic/tclThreadAlloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c
index 2ee758e..fc281db 100644
--- a/generic/tclThreadAlloc.c
+++ b/generic/tclThreadAlloc.c
@@ -210,6 +210,7 @@ GetCache(void)
1 << (NBUCKETS - 2 - i) : 1;
bucketInfo[i].lockPtr = TclpNewAllocMutex();
}
+ TclpInitAllocCache();
}
Tcl_MutexUnlock(initLockPtr);
}