Closed
Description
The following code states that stack_size
rounds up to the next 64 kB:
rust/library/std/src/sys/windows/thread.rs
Lines 31 to 33 in 97cde9f
However, if stack
is any of 0xffff * x + 1
(where x is a non-negative number) it will not properly round up. Additionally, the least significant byte is retained, I doubt that is intended either. Am I missing something? Otherwise I believe it's meant to be 0xffff
instead of 0xfffe
to properly round up.
Metadata
Metadata
Assignees
Labels
Area: Documentation for any part of the project, including the compiler, standard library, and toolsCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Help is requested to fix this issue.Operating system: WindowsRelevant to the library team, which will review and decide on the PR/issue.