Skip to content

[Tests] Fix Dispatch tests to work in container environments. #877

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
Jun 4, 2025

Conversation

al45tair
Copy link
Contributor

We need to use pthread_getaffinity_np() to get the active core count; using sysconf() will tell us about the underlying machine, which may have many more cores than the container in which we are executing.

rdar://152301793

We need to use `pthread_getaffinity_np()` to get the active core count;
using `sysconf()` will tell us about the underlying machine, which may
have many more cores than the container in which we are executing.

rdar://152301793
@al45tair al45tair requested a review from rokhinip May 30, 2025 09:07
@al45tair
Copy link
Contributor Author

@swift-ci Please test

@al45tair al45tair merged commit 96ac07d into swiftlang:main Jun 4, 2025
2 checks passed
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