[all-commits] [llvm/llvm-project] 62c340: tsan: unify all shadow mappings

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Tue Aug 10 11:07:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62c340760c5a7c37c0c81aa4dd75583de13c8ef1
      https://github.com/llvm/llvm-project/commit/62c340760c5a7c37c0c81aa4dd75583de13c8ef1
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-08-10 (Tue, 10 Aug 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_platform.h

  Log Message:
  -----------
  tsan: unify all shadow mappings

Currently we have ifdef's for Go/C++ and Windows/non-Windows
in MemToShadow, MemToMeta, ShadowToMem. This does not allow
to test all mappings on a single platform.
Make all these functions support a superset of mappings for
all platforms by defining missing mapping consts to 0.
E.g. we always do ^A+B, but if A and B are defined to 0,
then these operations become no-op.

Depends on D107739.

Reviewed By: melver

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




More information about the All-commits mailing list