Skip to content

TSan: Enable treating inout accesses as Thread Sanitizer writes by de… #8288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

devincoughlin
Copy link
Contributor

…fault

Flip the polarity of the frontend flag controlling whether TSan treats inout
accesses as conceptual writes. It is now on by default. This lets TSan detect
racing mutating methods even when those methods are not themselves instrumented
(such as methods on Standard Library collections).

This behavior can be disabled by passing:

-Xfrontend -disable-tsan-inout-instrumentation

when compiling under TSan.

rdar://problem/31069963

@devincoughlin devincoughlin self-assigned this Mar 22, 2017
…fault

Flip the polarity of the frontend flag controlling whether TSan treats inout
accesses as conceptual writes. It is now on by default. This lets TSan detect
racing mutating methods even when those methods are not themselves instrumented
(such as methods on Standard Library collections).

This behavior can be disabled by passing:

  -Xfrontend -disable-tsan-inout-instrumentation

when compiling under TSan.

rdar://problem/31069963
@devincoughlin devincoughlin force-pushed the tsan_inout_enable_by_default branch from 14dc3b7 to 70fbfea Compare March 23, 2017 00:41
@devincoughlin
Copy link
Contributor Author

@swift-ci Please test and merge

@swift-ci swift-ci merged commit 3687257 into swiftlang:master Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants