Skip to content

checker: fix possible race on expected arg types unwrapping on cgen#25815

Merged
spytheman merged 2 commits into
vlang:masterfrom
felipensp:fix_race_expected_arg_types
Nov 24, 2025
Merged

checker: fix possible race on expected arg types unwrapping on cgen#25815
spytheman merged 2 commits into
vlang:masterfrom
felipensp:fix_race_expected_arg_types

Conversation

@felipensp

@felipensp felipensp commented Nov 23, 2025

Copy link
Copy Markdown
Member

Fix possible race on cgen mut expected_types := node.expected_arg_types.map(g.unwrap_generic(it)) when using parallel build.

@felipensp felipensp requested a review from spytheman November 23, 2025 18:05
@felipensp felipensp changed the title Fix race expected arg types on cgen checker: fix possible race expected arg types on cgen Nov 23, 2025
@felipensp felipensp changed the title checker: fix possible race expected arg types on cgen checker: fix possible race on expected arg types unwrapping on cgen Nov 23, 2025
@spytheman spytheman marked this pull request as ready for review November 24, 2025 09:44
@spytheman

Copy link
Copy Markdown
Contributor

I'm still running tests. So far, it is fine (iteration 800).

@spytheman

Copy link
Copy Markdown
Contributor

Potential fix for #25822 .

@spytheman

Copy link
Copy Markdown
Contributor

I left the loop running for several hours, and there were no panics anymore with this PR 🥳 (last iteration was > 15000).

@spytheman spytheman merged commit 8147388 into vlang:master Nov 24, 2025
85 checks passed
@spytheman

Copy link
Copy Markdown
Contributor

Excellent work. Thank you @felipensp 🙇🏻 - this will hopefully make the CI a lot more stable.

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