Re: Too low PTHREAD_STACK_MIN value?

看板FB_current作者時間12年前 (2014/03/12 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
On 12 Mar 2014, at 02:07, Roger Pau Monn=E9 <roger.pau@citrix.com> wrote: > I've found out that the value PTHREAD_STACK_MIN is currently set (2048 > bytes) seems to be way too low This looks like an error in your code. The spec says: > PTHREAD_STACK_MIN > Minimum size in bytes of thread stack storage. > Minimum Acceptable Value: 0 It is meant to be the minimum value that the system can give for a thread s= tack. The purpose of this constant is for languages that do their own stac= k management bit some chain of activation records of segmented stacks, but = want to use pthreads for threading, so that they can allocate the smallest = possible stack that allows pthread cleanup to work. = Using it from C code is very likely to be a mistake. David _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1J7x7FSL (FB_current)
文章代碼(AID): #1J7x7FSL (FB_current)