[Mono-dev] News about Bug 623477
kumpera at gmail.com
Wed Dec 8 20:30:57 EST 2010
Well, the most appropriate behavior would be to expose a new runtime
that returns the smallest allowed stack size.
#if defined (PTHREAD_STACK_MIN)
#else /*FIXME add more cases. Not sure WINAPI exposes such a thing*/
return mono_pagesize (); /*A sane default*/
Then export it in icalls-def.h to a System.Threading.Thread static method.
And finally use this on managed code to properly check for minimum size.
Such change would be the appropriate way to go.
Torrelo, can you cook up such a patch? Either post it on bugzilla or make a
On Mon, Dec 6, 2010 at 9:00 AM, Torello Querci <tquerci at gmail.com> wrote:
> Hi Rodrigo,
> this is true but with this sample code:
> using System;
> using System.Threading;
> namespace testThread
> class Program
> static void Main(string args)
> Program p = new Program();
> Thread t = new Thread(p.ThreadEntryPoint, Int32.Parse(args));
> Console.WriteLine("T0 - Chk1");
> Console.WriteLine("T0 - Exit");
> public void ThreadEntryPoint(Object obj)
> Console.WriteLine("T1 - Enter");
> Console.WriteLine("T1 - Exit");
> if you run:
> Thread.exe 64000
> after compile it on VS this work while I get exception on Mono and for
> me is a bug.
> Ok, I compile with 3.5 profile, but also on 2.0 profile works so I
> suppose that the original MS specification was not implements by MS :)
> Best Regards.
> 2010/12/6 Rodrigo Kumpera <kumpera at gmail.com>:
> > This behavior is OS/target dependant, so it's not very useful to try to
> > match MS behavior on it.
> > On Thu, Dec 2, 2010 at 11:09 AM, Torello Querci <tquerci at gmail.com>
> >> Hi guy,
> >> no news about bug 623477?
> >> Best Regards, Torello
> >> _______________________________________________
> >> Mono-devel-list mailing list
> >> Mono-devel-list at lists.ximian.com
> >> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list