-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Fix a pthread_t handle leak #114610 #114696
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
library/std/src/sys/wasi/thread.rs
Outdated
@@ -178,6 +179,17 @@ impl Thread { | |||
} | |||
} | |||
|
|||
cfg_if::cfg_if! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason not to put this alongside the definition of Thread, i.e., in that same cfg_if?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved it to the same cfg_if
cc48559
to
9b00e5f
Compare
@Mark-Simulacrum is there anything else to address? |
@bors r+ rollup |
…llaumeGomez Rollup of 6 pull requests Successful merges: - rust-lang#114696 (Fix a pthread_t handle leak rust-lang#114610) - rust-lang#115102 (Improve note for the `invalid_reference_casting` lint) - rust-lang#115103 (Disable bootstrap rustc version check) - rust-lang#115106 (ArchiveWrapper: handle LLVM API update) - rust-lang#115109 (Skip ExpandYamlAnchors when the config is missing) - rust-lang#115135 (Rustdoc: Add unstable --no-html-source flag) r? `@ghost` `@rustbot` modify labels: rollup
Nominating for beta backport so that this fix can ride the release train with the |
[beta] backports - Fix a pthread_t handle leak rust-lang#114696 - MCP661: Move wasm32-wasi-preview1-threads target to Tier 2 rust-lang#115345 - Don't modify libstd to dump rustc ICEs rust-lang#115627 - Paper over an accidental regression rust-lang#115844 - Update to LLVM 17.0.0 rust-lang#115959 r? cuviper
#114610
Ran the tests as described in https://github.com/rust-lang/rust/blob/master/src/doc/rustc/src/platform-support/wasm32-wasi-preview1-threads.md?plain=1#L125