[TSan] Make sure we only collect non-TSan frames for memory operations r=dvyukov...
authorJulian Lettner <julian.lettner@apple.com>
Thu, 16 Mar 2023 22:57:56 +0000 (15:57 -0700)
committerJulian Lettner <julian.lettner@apple.com>
Sat, 18 Mar 2023 00:40:14 +0000 (17:40 -0700)
commit711ff37b554b2819f5fad02bc263c8044d762a3c
treefb14116dc0fa3c5c114a9bcbf5fb778e9a8be540
parent659da71a406080b72c3882c491627ae4028b5675
[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
compiler-rt/lib/tsan/rtl/tsan_external.cpp
compiler-rt/test/tsan/Darwin/external-swift-debugging.cpp