[all-commits] [llvm/llvm-project] 470f06: tsan: make all memory mappings testable

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 470f063720d1f22b57fe497974c66d03f6c21e8e
      https://github.com/llvm/llvm-project/commit/470f063720d1f22b57fe497974c66d03f6c21e8e
  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: make all memory mappings testable

Currently we define/compile the mapping for a platform
only on that platform. This makes it impossible to unit-test
them on a single platform, and even to build test.
We have 17 of them and the Go mappings will be tested
only after a manual episodic update of the Go runtime.

Define all mappings always with unique names.
This will allow to unit-test them.
No functional changes.

Reviewed By: melver

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




More information about the All-commits mailing list