Skip to content

pool: fix initialization of WaitGroup in test_concurrent_access()#24753

Merged
spytheman merged 1 commit into
vlang:masterfrom
kimshrier:fix-pool-test-concurrent-access
Jun 19, 2025
Merged

pool: fix initialization of WaitGroup in test_concurrent_access()#24753
spytheman merged 1 commit into
vlang:masterfrom
kimshrier:fix-pool-test-concurrent-access

Conversation

@kimshrier

@kimshrier kimshrier commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

Creating a new empty WaitGroup structure does not initialize the semaphore structure member. Calling sync.new_waitgroup() makes sure the proper initialization happens.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-23171

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you 🙇🏻.

I should have spotted it in the review of the PR 🤦🏻‍♂️.

@spytheman spytheman merged commit e2835bb into vlang:master Jun 19, 2025
69 checks passed
@kimshrier kimshrier deleted the fix-pool-test-concurrent-access branch April 28, 2026 02:05
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