-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
std::thread::Thread grew from one to two pointer sizes #132619
Copy link
Copy link
Closed
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Caused by the changes in #123550 the size of
std::thread::Threadgrew from one to two pointer sizes.The docs don't promise
Threadto have a certain size so I'm not quite sure whether this would be considered a breaking change. It doesn't seem however like this was noticed/acknowledged in the PR, as having a larger thread handle might negate the benefits that PR brought with it.Code
I tried this code:
I expected to see this happen: it to run successfully
Instead, this happened: the assert is unfulfilled and it panics
Version it worked on
It most recently worked on: Rust 1.82
Version with regression
rustc --version --verbose: