[all-commits] [llvm/llvm-project] 402dd7: sanitizer_common: Use plain thread_local for __san...

pcc via All-commits all-commits at lists.llvm.org
Mon Mar 20 16:26:38 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 402dd79a293dc23f0ccf521d79386880e4969584
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2023-03-20 (Mon, 20 Mar 2023)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h

  Log Message:
  sanitizer_common: Use plain thread_local for __sancov_lowest_stack definition.

We can't use initial-exec for the definition of __sancov_lowest_stack
because it gets linked into shared libraries such as the UBSan and
HWASan runtimes on Android. I think we can expect plain thread_local
to work unconditionally in sanitizer_common as several other sanitizers
are already using it, so drop the platform-dependent macro and just use
thread_local in the definition.

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

More information about the All-commits mailing list