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