[clang] [compiler-rt] [llvm] [TSan][ObjC] Make TSan able to detect races on 'nonatomic, copy' properties (PR #238426)
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 20:57:56 PST 2026
vitalybuka wrote:
> > > Hi @vitalybuka; I'm planning to add proper support for Objective-C in TSan - is this a substantial enough change that it should go through RFC?
> >
> >
> > I guess depends on how intrusive change will be needed.
>
> I think the only change in cross-platform code is these additions to the instrumentation pass: https://github.com/llvm/llvm-project/pull/238426/changes#diff-a066a832302eb30d1c229ea85c5d4854b1d7f2fb375e51401440da38c8a101a0. When I wrote that comment I was thinking we may need other support, but looking into the ObjC runtime, it seems that most other operations are either atomic by default or the existing codegen already works correctly with TSan.
I don't think it's worth of RFC if it doesn't affect existing supported languages and someone on your team is willing to maintain it.
https://github.com/llvm/llvm-project/pull/238426
More information about the cfe-commits
mailing list