Skip to content

Enable -Wthread-safety-analysis. - #2296

Closed
ScottTodd wants to merge 1 commit into
iree-org:googlefrom
ScottTodd:thread-safety-warnings
Closed

ScottTodd wants to merge 1 commit into
iree-org:googlefrom
ScottTodd:thread-safety-warnings

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

These would have flagged on #2208.

@antiagainst

Copy link
Copy Markdown
Member

The warning on #2208 is a false alarm though given the lambda is only used inside the function, which acquires the lock at the very beginning.

@ScottTodd
ScottTodd deleted the thread-safety-warnings branch June 24, 2020 16:03
GMNGeoffrey added a commit that referenced this pull request Jul 16, 2020
We already pass with all of these, but haven't had them enabled in OSS
builds. Rather than piecemeal enabling warnings, let's just turn ~all
of them on. This is pretty much the set used at Google (+/-, it's spread 
across quite a few files so difficult to track everything down), so
this also reduces maintainer pain encountering these errors on import.

This will avoid having to do this one at a time like in
#2296 and
#2294 and
#2513
GMNGeoffrey added a commit to GMNGeoffrey/iree that referenced this pull request Jul 16, 2020
…#2541)

We already pass with all of these, but haven't had them enabled in OSS
builds. Rather than piecemeal enabling warnings, let's just turn ~all
of them on. This is pretty much the set used at Google (+/-, it's spread
across quite a few files so difficult to track everything down), so
this also reduces maintainer pain encountering these errors on import.

This will avoid having to do this one at a time like in
iree-org#2296 and
iree-org#2294 and
iree-org#2513
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants