Skip to content

Commit

Permalink
remove old __thread for apple clang (#2773)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingerZhu authored Aug 26, 2021
1 parent 818794f commit c495d93
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dbms/src/Common/MemoryTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c495d93

Please sign in to comment.