Repository navigation
[NFC] Extract out referenced functions utility - #9347
Merged
Merged
Conversation
stevenfontanella
force-pushed
the
referenced-functions
branch
from
November 5, 2026 01:18
b77bf1f to
5175914
Compare
stevenfontanella
force-pushed
the
referenced-functions
branch
from
November 5, 2026 19:42
5175914 to
1ac9ecc
Compare
stevenfontanella
marked this pull request as ready for review
November 5, 2026 22:25
stevenfontanella
requested review from
aheejin
and removed request for
a team
November 5, 2026 22:25
There was a problem hiding this comment.
Code Review
This pull request refactors the codebase by moving the getReferencedFuncs utility from GlobalEffects.cpp to module-utils.cpp to make it globally accessible, and adds corresponding unit tests. The review comments correctly identify a critical concurrency issue: a potential data race in AddressedFuncsWalker when accessing allReferencedFuncs with operator[] during parallel execution. To resolve this, the nullptr key should be pre-populated on the main thread, and accessed using the thread-safe .at(nullptr) method in the constructor.
aheejin
approved these changes
Nov 6, 2026
aheejin
left a comment
Member
There was a problem hiding this comment.
Maybe add 'NFC' to the title?
Member
Author
|
Sent #9355 to resolve the CI failure. |
stevenfontanella
force-pushed
the
referenced-functions
branch
from
November 6, 2026 20:16
eb5f475 to
a6342ae
Compare
stevenfontanella
enabled stacked auto-merge (squash)
November 6, 2026 20:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move out the existing logic in
GlobalEffectsfor use in the futureRelaxNullabilitypass. ThePassRunnerparam isn't needed because we don't actually inherit anything from it.The code is moved verbatim, except for the fix in this commit and the
PassRunnerparam is removed.For use in #9349.