We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4066434 + 6843dd5 commit 5d038c3Copy full SHA for 5d038c3
library/std/src/sys/windows/thread.rs
@@ -30,12 +30,9 @@ impl Thread {
30
// PTHREAD_STACK_MIN bytes big. Windows has no such lower limit, it's
31
// just that below a certain threshold you can't do anything useful.
32
// That threshold is application and architecture-specific, however.
33
- // Round up to the next 64 kB because that's what the NT kernel does,
34
- // might as well make it explicit.
35
- let stack_size = (stack + 0xfffe) & (!0xfffe);
36
let ret = c::CreateThread(
37
ptr::null_mut(),
38
- stack_size,
+ stack,
39
thread_start,
40
p as *mut _,
41
c::STACK_SIZE_PARAM_IS_A_RESERVATION,
0 commit comments