This is the mail archive of the
mailing list for the GCC project.
Re: [tsan] ThreadSanitizer instrumentation part
Yes, agree. For now using the !(TREE_ADDRESSABLE (decl) ||
is_global_var (decl)) can be used to skip instrumentation if the
points-to interface is not available for use.
On Fri, Nov 2, 2012 at 8:58 AM, Jakub Jelinek <email@example.com> wrote:
> On Fri, Nov 02, 2012 at 08:54:42AM -0700, Xinliang David Li wrote:
>> Thanks, good to know that.
> But note that such vars, even when accessed only partially, don't
> need to be tracked by tsan just because of that.
> TREE_ADDRESSABLE (decl) || is_global_var (decl) is really a conservative
> check for what needs to be tracked, and perhaps less conservative one using