Differences From Artifact [dd2d9ae274]:
- File generic/tclThreadAlloc.c — part of check-in [7a3c8a4b0d] at 2016-10-11 21:43:44 on branch core-8-6-branch — Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread exists (user: jan.nijtmans size: 28458) [more...]
To Artifact [451fb6847a]:
- File generic/tclThreadAlloc.c — part of check-in [86d412ef6d] at 2017-01-13 11:17:17 on branch notifier — Patch from Zoran Vasiljevic, fix for missing proper initialization of the threaded allocator in some situations. (user: jan.nijtmans size: 28485)
| ︙ | |||
206 207 208 209 210 211 212 213 214 215 216 217 218 219 | 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | + |
for (i = 0; i < NBUCKETS; ++i) {
bucketInfo[i].blockSize = MINALLOC << i;
bucketInfo[i].maxBlocks = 1 << (NBUCKETS - 1 - i);
bucketInfo[i].numMove = i < NBUCKETS - 1 ?
1 << (NBUCKETS - 2 - i) : 1;
bucketInfo[i].lockPtr = TclpNewAllocMutex();
}
TclpInitAllocCache();
}
Tcl_MutexUnlock(initLockPtr);
}
/*
* Get this thread's cache, allocating if necessary.
*/
|
| ︙ |