Skip to content

Conversation

@akonradi
Copy link
Contributor

@akonradi akonradi commented Jun 1, 2023

Make loom::thread::Builder::stack_size not a no-op. This is done by spawning scheduler threads later such that the requested stack size can be applied then.

Fixes #309

akonradi added 2 commits June 6, 2023 13:59
Create the scheduler's threads in the stack of Scheduler::run since
they're only actually used during that call.
Instead of creating a generator for each possible thread at the
beginning, create threads and backing generators as they are spawned by
the test cases. This allows us to provide a stack size when spawning a
scheduler thread, which can be set via the thread Builder.

Fixes tokio-rs#309
Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@taiki-e taiki-e merged commit ce8a232 into tokio-rs:master Jun 11, 2023
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.

Stack size of spawned threads is not configurable

2 participants