Skip to content

Avoid using rand() that leads to a lock contention #804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Avoid using rand() that leads to a lock contention #804

merged 1 commit into from
Jan 8, 2024

Conversation

ilya-fedin
Copy link
Contributor

Fixes #760

@rjmccall
Copy link

@swift-ci Please test

@hassila
Copy link

hassila commented Dec 14, 2023

Some results here: #760 (comment)

Seems this patch eliminates the bottleneck of rand().

@ktoso
Copy link
Contributor

ktoso commented Dec 21, 2023

I think we can consider this for the linux only release in January. Will update soon

@ktoso ktoso merged commit a102d19 into swiftlang:main Jan 8, 2024
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.

Swift Actor/Tasks concurrency on Linux - Lock contention in rand()
4 participants