[Mono-bugs] [Bug 623477] Different behavior on Thread(ThreadEntryPoint, maxStackSize) on .net and mono

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 20 01:14:16 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=623477

http://bugzilla.novell.com/show_bug.cgi?id=623477#c2


Torello Querci <tquerci at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |

--- Comment #2 from Torello Querci <tquerci at gmail.com> 2010-07-20 05:14:15 UTC ---
Hi,

please look this two link to MS documentation:
http://msdn.microsoft.com/en-us/library/ms149581(VS.80).aspx
http://msdn.microsoft.com/en-us/library/ms149581(v=VS.85).aspx

The first link is related to .Net 2.0 while the second it related with .Net 3.0
In the first case the maxStackSize parameter need to be greater of 128k. In the
second case this constraint is removed.

Mono actually have a behavior of .Net 2.0 ever.
I suppose that to have a behavior like to .Net 3.0 and upper is better for
compatibility with .Net application.

Here there is the patch to get this one.

Index: class/corlib/System.Threading/Thread.cs
===================================================================
--- class/corlib/System.Threading/Thread.cs    (revisione 159957)
+++ class/corlib/System.Threading/Thread.cs    (copia locale)
@@ -976,8 +976,8 @@
         {
             if (start == null)
                 throw new ArgumentNullException ("start");
-            if (maxStackSize < 131072)
-                throw new ArgumentException ("< 128 kb", "maxStackSize");
+            if (maxStackSize < 0)
+                throw new ArgumentException ("< 0 kb", "maxStackSize");

             threadstart = start;
             Internal.stack_size = maxStackSize;

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list