Skip to content

Conversation

@japaric
Copy link
Member

@japaric japaric commented Apr 29, 2022

as it's easier to deal with TSAN false positives in the former API

as it surfaced in PR #280 the current supression rules don't handle newer versions of the
scoped_threadpool crate

trying to update the supression rules related to scoped_threadpool in PR #282 revealed that the
supression rules are masking (hiding) real data races:
#282 (comment)

std::thread::scope requires less supression rules and does not mask real data races -- for instance,
the data race in the linked issue comment is not masked when using std::thread::scope

tradeoffs:

  • pro: one less dev dependency but added a small build dependency
  • pro: supressions file is simpler
  • cons: std::thread::scope is only available on recent nightlies but the API is only used in tests so it doesn't affect the MSRV

japaric added 2 commits April 29, 2022 15:20
as it's easier to deal with TSAN false positives in the former API

as surfaced in PR 280 the current supression rules don't handle newer versions of the
scoped_threadpool crate

trying to update the supression rules related to scoped_threadpool in PR #282 revealed that the
supression rules are masking (hiding) real data races:
#282 (comment)

std::thread::scope requires less supression rules and does not mask real data races -- for instance,
the data race in the linked issue comment is not masked when using std::thread::scope

tradeoffs:
- pro: one less dev dependency
- pro: supressions file is simpler
- cons: std::thread::scope is only available on recent nightlies
@japaric japaric force-pushed the rm-scoped_threadpool branch from a618e6a to e809144 Compare April 29, 2022 14:10
@japaric japaric force-pushed the rm-scoped_threadpool branch from e809144 to 57ac20e Compare April 29, 2022 14:16
@japaric
Copy link
Member Author

japaric commented Apr 29, 2022

r? @korken89

Copy link
Contributor

@korken89 korken89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors merge

@korken89 korken89 merged commit 1c56672 into master May 1, 2022
@korken89 korken89 deleted the rm-scoped_threadpool branch May 1, 2022 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants