Skip to content

Conversation

etcwilde
Copy link
Member

@etcwilde etcwilde commented Sep 2, 2025

Adding a check to verify that sysctlbyname didn't fail in dispatch_workqeueu. If it does, activecpu will contain random garbage. The test will fail, but it isn't clear why.

Adding testing functions to verify that a uint32 isn't a specific
number.
Adding a check to verify that `syscltbyname` didn't fail. If it did, it
likely indicates that the `hw.activecpu` syscall doesn't exist.

If the call fails, return zero, indicating that we don't know how many
cpus are available.
@etcwilde etcwilde requested a review from akmorrison September 2, 2025 23:56
@etcwilde
Copy link
Member Author

etcwilde commented Sep 2, 2025

@swift-ci please test

@etcwilde etcwilde merged commit 95507cb into swiftlang:main Sep 3, 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