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);
40 stack_begin_ = args->stack_begin;
41 stack_end_ = args->stack_end;
50 auto args = reinterpret_cast<const OnStartedArgs *>(arg);
51 cache_begin_ = args->cache_begin;
52 cache_end_ = args->cache_end;
58 CHECK_EQ(args.cache_end - args.cache_begin, sizeof(AllocatorCache));
72 GetLsanThreadRegistryLocked()->RunCallbackForEachThreadLocked(
74 auto ctx = static_cast<ThreadContext *>(tctx);
75 static_cast<decltype(caches)>(arg)->push_back(ctx->cache_begin());
80 // On Fuchsia, leak detection is done by a special hook after atexit hooks.
115 GetLsanThreadRegistryLocked()->FinishThread(tid);
119 // This is called in the newly-created thread before it runs anything else,
128 // All per-thread destructors have already been called.