diff options
-rw-r--r-- | src/thread_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thread_cache.h b/src/thread_cache.h index 81a020e..61ee44d 100644 --- a/src/thread_cache.h +++ b/src/thread_cache.h @@ -417,7 +417,9 @@ inline ThreadCache* ThreadCache::GetCache() { // because we may be in the thread destruction code and may have // already cleaned up the cache for this thread. inline ThreadCache* ThreadCache::GetCacheIfPresent() { +#ifndef HAVE_TLS if (!tsd_inited_) return NULL; +#endif return GetThreadHeap(); } |