Skip to content
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

Switched FreeBSD to pthread_setname_np #4132

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

YohDeadfall
Copy link
Contributor

Updated FreeBSD name handling and tests to reflect the changes made in rust-lang/rust#132607.

@oli-obk oli-obk added this pull request to the merge queue Jan 10, 2025
Merged via the queue into rust-lang:master with commit bd99bc7 Jan 10, 2025
7 checks passed
@YohDeadfall YohDeadfall deleted the freebsd-thread-name-changes branch January 10, 2025 22:10
)? {
ThreadNameResult::Ok => Scalar::from_u32(0),
// `NameTooLong` is possible when the buffer is zero sized,
ThreadNameResult::NameTooLong => Scalar::from_u32(0),
Copy link
Member

Choose a reason for hiding this comment

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

Do we have a test for the zero-sized buffer case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it was originally done for macOS. Line 130 in the tests.

Copy link
Member

Choose a reason for hiding this comment

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

Great, thanks :)

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.

3 participants