We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3314d5c commit 8cd7aaaCopy full SHA for 8cd7aaa
library/std/src/sys/pal/windows/thread.rs
@@ -26,11 +26,6 @@ impl Thread {
26
pub unsafe fn new(stack: usize, p: Box<dyn FnOnce()>) -> io::Result<Thread> {
27
let p = Box::into_raw(Box::new(p));
28
29
- // FIXME On UNIX, we guard against stack sizes that are too small but
30
- // that's because pthreads enforces that stacks are at least
31
- // PTHREAD_STACK_MIN bytes big. Windows has no such lower limit, it's
32
- // just that below a certain threshold you can't do anything useful.
33
- // That threshold is application and architecture-specific, however.
34
let ret = c::CreateThread(
35
ptr::null_mut(),
36
stack,
0 commit comments