diff options
| author | Lewis Clark <me@lewis.to> | 2022-03-04 18:04:43 +0000 |
|---|---|---|
| committer | Lewis Clark <me@lewis.to> | 2022-03-04 18:04:43 +0000 |
| commit | 6843dd5013545652ccd1ff3e63462d6cffbe1dcf (patch) | |
| tree | 5e8793a4fb6ec8825820fd5390e0a19fef5150aa /library/std | |
| parent | 08504c64aa7c4163a51c1982ed10075bb89cec0e (diff) | |
| download | rust-6843dd5013545652ccd1ff3e63462d6cffbe1dcf.tar.gz rust-6843dd5013545652ccd1ff3e63462d6cffbe1dcf.zip | |
Don't round stack size up for created threads
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/src/sys/windows/thread.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/library/std/src/sys/windows/thread.rs b/library/std/src/sys/windows/thread.rs index e4bba9255d2..fdbf7d4fded 100644 --- a/library/std/src/sys/windows/thread.rs +++ b/library/std/src/sys/windows/thread.rs @@ -28,12 +28,9 @@ impl Thread { // PTHREAD_STACK_MIN bytes big. Windows has no such lower limit, it's // just that below a certain threshold you can't do anything useful. // That threshold is application and architecture-specific, however. - // Round up to the next 64 kB because that's what the NT kernel does, - // might as well make it explicit. - let stack_size = (stack + 0xfffe) & (!0xfffe); let ret = c::CreateThread( ptr::null_mut(), - stack_size, + stack, thread_start, p as *mut _, c::STACK_SIZE_PARAM_IS_A_RESERVATION, |
