Lines Matching +full:auto +full:- +full:detection
1 //=-- lsan_fuchsia.cpp ---------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===---------------------------------------------------------------------===//
12 //===---------------------------------------------------------------------===//
39 auto args = reinterpret_cast<const OnCreatedArgs *>(arg); in OnCreated()
40 stack_begin_ = args->stack_begin; in OnCreated()
41 stack_end_ = args->stack_end; in OnCreated()
50 auto args = reinterpret_cast<const OnStartedArgs *>(arg); in OnStarted()
51 cache_begin_ = args->cache_begin; in OnStarted()
52 cache_end_ = args->cache_end; in OnStarted()
58 CHECK_EQ(args.cache_end - args.cache_begin, sizeof(AllocatorCache)); in ThreadStart()
72 GetLsanThreadRegistryLocked()->RunCallbackForEachThreadLocked( in GetAllThreadAllocatorCachesLocked()
74 auto ctx = static_cast<ThreadContext *>(tctx); in GetAllThreadAllocatorCachesLocked()
75 static_cast<decltype(caches)>(arg)->push_back(ctx->cache_begin()); in GetAllThreadAllocatorCachesLocked()
80 // On Fuchsia, leak detection is done by a special hook after atexit hooks.
115 GetLsanThreadRegistryLocked()->FinishThread(tid); in __sanitizer_thread_create_hook()
119 // This is called in the newly-created thread before it runs anything else,
128 // All per-thread destructors have already been called.