[all-commits] [llvm/llvm-project] 711ff3: [TSan] Make sure we only collect non-TSan frames f...

Julian Lettner via All-commits all-commits at lists.llvm.org
Fri Mar 17 17:40:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 711ff37b554b2819f5fad02bc263c8044d762a3c
      https://github.com/llvm/llvm-project/commit/711ff37b554b2819f5fad02bc263c8044d762a3c
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_external.cpp
    M compiler-rt/test/tsan/Darwin/external-swift-debugging.cpp

  Log Message:
  -----------
  [TSan] Make sure we only collect non-TSan frames for memory operations r=dvyukov,rsundahl,thetruestblue,wrotki,kubamracek!

A previous change [1] moved retrieval of the caller PC
(`__builtin_return_address(0)` via `CALLERPC`) from an
interface-boundary function into a shared helper function
`ExternalAccess`.  If this function does not get inlined, we fail to
collect the appropriate caller PC for the "TSan interface boundary".

[1] https://reviews.llvm.org/D32360

rdar://78489600

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




More information about the All-commits mailing list