]> git.lizzy.rs Git - rust.git/commitdiff
min_stack_size: update non-Linux implementation comment
authorAnders Kaseorg <andersk@mit.edu>
Mon, 23 Mar 2015 07:48:06 +0000 (03:48 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Mon, 23 Mar 2015 07:48:06 +0000 (03:48 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
src/libstd/sys/unix/thread.rs

index 1d3cb43465b046a0f6e74a04d1de6ead04b4558d..b3594dcaa756575f07a65c7ae64b2b0ee665011a 100644 (file)
@@ -343,8 +343,8 @@ fn min_stack_size(attr: *const libc::pthread_attr_t) -> libc::size_t {
     }
 }
 
-// __pthread_get_minstack() is marked as weak but extern_weak linkage is
-// not supported on OS X, hence this kludge...
+// No point in looking up __pthread_get_minstack() on non-glibc
+// platforms.
 #[cfg(not(target_os = "linux"))]
 fn min_stack_size(_: *const libc::pthread_attr_t) -> libc::size_t {
     PTHREAD_STACK_MIN