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