Skip to content

Allow configuration of thread stack size #11

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

Closed
wants to merge 2 commits into from
Closed

Conversation

seanlinsley
Copy link
Member

@seanlinsley seanlinsley commented Feb 1, 2023

The docs say you can set RUST_MIN_STACK, but that doesn't seem to be the case when building a thread from std::thread::Builder. Maybe a Rust bug?

This PR works around that by explicitly setting the stack size on the upstream threadpool crate.

@seanlinsley seanlinsley marked this pull request as ready for review February 8, 2023 17:07
@seanlinsley seanlinsley requested review from lfittl and msepga February 8, 2023 17:07
@seanlinsley
Copy link
Member Author

seanlinsley commented Mar 16, 2023

This turns out to not be necessary. Instead, users must be sure to set RUST_MIN_STACK before any threads have been started: rust-lang/rust#109225

@seanlinsley seanlinsley deleted the stack-size branch September 30, 2024 23:47
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.

1 participant