[all-commits] [llvm/llvm-project] dd922b: [LSan] Introduce a callback mechanism to allow add...

Dan Liew via All-commits all-commits at lists.llvm.org
Fri Jan 22 19:27:29 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd922bc2a62163cef442646974324943c551725e
      https://github.com/llvm/llvm-project/commit/dd922bc2a62163cef442646974324943c551725e
  Author: Dan Liew <dliew at apple.com>
  Date:   2021-01-22 (Fri, 22 Jan 2021)

  Changed paths:
    M compiler-rt/lib/asan/asan_allocator.cpp
    M compiler-rt/lib/lsan/lsan_allocator.cpp
    M compiler-rt/lib/lsan/lsan_common.cpp
    M compiler-rt/lib/lsan/lsan_common.h

  Log Message:
  -----------
  [LSan] Introduce a callback mechanism to allow adding data reachable from ThreadContexts to the frontier.

This mechanism is intended to provide a way to treat the `arg` pointer
of a created (but not yet started) thread as reachable. In future
patches this will be implemented in `GetAdditionalThreadContextPtrs`.

A separate implementation of `GetAdditionalThreadContextPtrs` exists
for ASan and LSan runtimes because they need to be implemented
differently in future patches.

rdar://problem/63537240

Differential Revision: https://reviews.llvm.org/D95183




More information about the All-commits mailing list