Skip to content

Commit b6641c1

Browse files
committed
min_stack_size: update non-Linux implementation comment
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 0090e01 commit b6641c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys/unix/thread.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ fn min_stack_size(attr: *const libc::pthread_attr_t) -> libc::size_t {
343343
}
344344
}
345345

346-
// __pthread_get_minstack() is marked as weak but extern_weak linkage is
347-
// not supported on OS X, hence this kludge...
346+
// No point in looking up __pthread_get_minstack() on non-glibc
347+
// platforms.
348348
#[cfg(not(target_os = "linux"))]
349349
fn min_stack_size(_: *const libc::pthread_attr_t) -> libc::size_t {
350350
PTHREAD_STACK_MIN

0 commit comments

Comments
 (0)