DanBlackwell 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.

I'm going to maintain it; and I think the effect on existing languages is just 
that the pass will run _slightly_ slower as it will also be checking for some 
ObjC runtime function calls.

https://github.com/llvm/llvm-project/pull/238426
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to