This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

David

On Fri, Nov 2, 2012 at 8:58 AM, Jakub Jelinek <jakub@redhat.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
> points-to.
>
>         Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]