[Mono-dev] News about Bug 623477

Paolo Molaro lupus at ximian.com
Fri Dec 10 08:14:34 EST 2010


On 12/08/10 Rodrigo Kumpera wrote:
> Well, the most appropriate behavior would be to expose a new runtime
> function
> that returns the smallest allowed stack size.
> 
> Something like:
> 
> --in metadata/theads.c
> 
> int
> mono_thread_get_stack_min_size ()
> {
> #if defined (PTHREAD_STACK_MIN)
>    return PTHREAD_STACK_MIN;
> #else /*FIXME add more cases. Not sure WINAPI exposes such a thing*/
>   return mono_pagesize (); /*A sane default*/
> #endif

Both PTHREAD_STACK_MIN and the page size are not sane defaults at all.
We should just ignore it if the user asks for a smaller size than the
minimum and raise an exception only on < 0.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-devel-list mailing list