Skip to content

Conversation

@rupprecht
Copy link
Collaborator

After #164340 there is a tsan race on OutstandingSymbolsCount when decrementing it in notifySymbolMetRequiredState vs reading it in isComplete(). Fix this by having IL_emit filter out non-completed queries when it has the lock to do so, and that way we avoid needing to call isComplete() later.

Copy link
Contributor

@lhames lhames left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @rupprecht!

@googlewalt googlewalt merged commit f58aa0e into llvm:main Oct 25, 2025
10 checks passed
dvbuka pushed a commit to dvbuka/llvm-project that referenced this pull request Oct 27, 2025
After llvm#164340 there is a tsan race on `OutstandingSymbolsCount` when
decrementing it in `notifySymbolMetRequiredState` vs reading it in
`isComplete()`. Fix this by having `IL_emit` filter out non-completed
queries when it has the lock to do so, and that way we avoid needing to
call `isComplete()` later.
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
After llvm#164340 there is a tsan race on `OutstandingSymbolsCount` when
decrementing it in `notifySymbolMetRequiredState` vs reading it in
`isComplete()`. Fix this by having `IL_emit` filter out non-completed
queries when it has the lock to do so, and that way we avoid needing to
call `isComplete()` later.
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
After llvm#164340 there is a tsan race on `OutstandingSymbolsCount` when
decrementing it in `notifySymbolMetRequiredState` vs reading it in
`isComplete()`. Fix this by having `IL_emit` filter out non-completed
queries when it has the lock to do so, and that way we avoid needing to
call `isComplete()` later.
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.

3 participants