[all-commits] [llvm/llvm-project] fd5060: tsan: define all fields for all mappings

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd5060073390ea05ff52c8825681d2329b780ec9
      https://github.com/llvm/llvm-project/commit/fd5060073390ea05ff52c8825681d2329b780ec9
  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
    M compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp

  Log Message:
  -----------
  tsan: define all fields for all mappings

Define all fields to 0 for all mappings.
This allows to write portable code and tests.
For all existing cases 0 values work out of the box
because we check if an address belongs to the range
and nothing belongs to [0, 0] range.

Depends on D107738.

Reviewed By: melver

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




More information about the All-commits mailing list