[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mono



Hi,

Barry deFreese, le Sat 25 Nov 2006 00:06:30 -0500, a écrit :
> The following code seems to be the culprit:  mono/io-layer/collection.c
> 
> #ifdef HAVE_PTHREAD_ATTR_SETSTACKSIZE
> #ifdef __FreeBSD__
>        ret = pthread_attr_setstacksize (&attr, 65536);
> #else
>        ret = pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
> #endif
>        g_assert (ret == 0);
> #endif

Mmm, that's a bit stupid indeed :) It should rather just be

#ifdef HAVE_PTHREAD_ATTR_SETSTACKSIZE
#ifndef PTHREAD_STACK_MIN
       ret = pthread_attr_setstacksize (&attr, 65536);
#else
       ret = pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
#endif
       g_assert (ret == 0);
#endif

Samuel



Reply to: