summaryrefslogtreecommitdiffstats
path: root/generic/tclThreadAlloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclThreadAlloc.c')
-rwxr-xr-xgeneric/tclThreadAlloc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c
index 18ae9cc..ad1d510 100755
--- a/generic/tclThreadAlloc.c
+++ b/generic/tclThreadAlloc.c
@@ -148,13 +148,11 @@ static Cache *firstCachePtr = &sharedCache;
#if defined(HAVE_FAST_TSD)
static __thread Cache *tcachePtr;
-static __thread int allocInitialized = 0;
# define GETCACHE(cachePtr) \
do { \
- if (!allocInitialized) { \
- allocInitialized = 1; \
- tcachePtr = GetCache(); \
+ if (!tcachePtr) { \
+ tcachePtr = GetCache(); \
} \
(cachePtr) = tcachePtr; \
} while (0)