[all-commits] [llvm/llvm-project] c45ee7: [NFC][sanitizer] Add class to track thread arg and...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu May 11 14:44:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c45ee7c0fba8daa2b5b6b201faa99d02c01cce8b
      https://github.com/llvm/llvm-project/commit/c45ee7c0fba8daa2b5b6b201faa99d02c01cce8b
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2023-05-11 (Thu, 11 May 2023)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/CMakeLists.txt
    A compiler-rt/lib/sanitizer_common/sanitizer_thread_arg_retval.cpp
    A compiler-rt/lib/sanitizer_common/sanitizer_thread_arg_retval.h
    M compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
    A compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_arg_retval_test.cpp

  Log Message:
  -----------
  [NFC][sanitizer] Add class to track thread arg and retval

We need something to keep arg and retval pointers for leak checking.
Pointers should keept alive even after thread exited, until the thread
is detached or joined.
We should not put this logic into ThreadRegistry as we need the the
same for the ThreadList of HWASAN.

Reviewed By: thurston

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




More information about the All-commits mailing list