Repository navigation
Conversation
|
@bors try |
This comment has been minimized.
This comment has been minimized.
[EXPERIMENTAL] rustc_thread_pool: test whether `build_scoped` waits for thread exit try-jobs: dist-x86_64-mingw
|
From my stress testing this does fix the issue. Will create a new issue with some info then |
4e78a54 to
89e7ed0
Compare
build_scoped waits for thread exitbuild_scoped
|
This is ready for review. See #166530 and the updated PR description. |
|
#116237 is nasty, I'd never guess that it's the case. |
89e7ed0 to
d3b0efd
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
This is probably not a problem for the original rayon-core (except in documentation?) because it probably wants to inherit the behavior of In rustc we already wait with |
This is an LLM-assited-human-directed PR.
Found @cuviper as pre-approved reviewer through Zulip DM :)
See #llm-reviews > LLM for debuggin windows-gnu stack overflow #139070 @ 💬
Fixes #166530.
Let me copy-paste what I wrote there
Solution
While I haven't figured out why it became more often, my agent has found one potential fix that it may have some connections with the bug. The LLM-assisted-human-directed PR is in #166322.
Basically, the hypothesis is
I don't know how this connects to window-gnu failure, but by my stress testing it did show that after this fix, cargo test suite no longer shows the stack overflow behavior.
And #166322 is anyway more correct IMHO for a fixed size pool, as
std::thread::scopeddoc does say TLS destructor may still be running when existing:rust/library/std/src/thread/scoped.rs
Lines 83 to 85 in 89e7ed0
If we eventually want to shift to a dynamic-sized pool, we might want to reconsider this change.
How to review
Commit by commit.
The commit structure follows: https://epage.github.io/dev/pr-style/#c-test
try-jobs: dist-x86_64-mingw
r? cuviper