From c495d937791bf469b1e27478fe03739c6f0a871a Mon Sep 17 00:00:00 2001 From: Schrodinger ZHU Yifan Date: Thu, 26 Aug 2021 08:14:04 +0800 Subject: [PATCH] remove old __thread for apple clang (#2773) --- dbms/src/Common/MemoryTracker.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dbms/src/Common/MemoryTracker.h b/dbms/src/Common/MemoryTracker.h index b7324aa468d..0c9910e0605 100644 --- a/dbms/src/Common/MemoryTracker.h +++ b/dbms/src/Common/MemoryTracker.h @@ -84,11 +84,7 @@ class MemoryTracker * This pointer is set when memory consumption is monitored in current thread. * So, you just need to pass it to all the threads that handle one request. */ -#if __APPLE__ && __clang__ -extern __thread MemoryTracker * current_memory_tracker; -#else extern thread_local MemoryTracker * current_memory_tracker; -#endif /// Convenience methods, that use current_memory_tracker if it is available. namespace CurrentMemoryTracker