1 //=-- lsan_linux.cc -------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file is a part of LeakSanitizer. Linux-specific code.
12 //===----------------------------------------------------------------------===//
14 #include "sanitizer_common/sanitizer_platform.h"
18 #include "lsan_allocator.h"
22 static THREADLOCAL u32 current_thread_tid = kInvalidTid;
23 u32 GetCurrentThread() { return current_thread_tid; }
24 void SetCurrentThread(u32 tid) { current_thread_tid = tid; }
26 static THREADLOCAL AllocatorCache allocator_cache;
27 AllocatorCache *GetAllocatorCache() { return &allocator_cache; }
29 void ReplaceSystemMalloc() {}
33 #endif // SANITIZER_LINUX