[Mono-dev] News about Bug 623477?
Torello Querci
tquerci at gmail.com
Mon Aug 16 06:19:42 EDT 2010
New patch with the fixes.
Index: class/corlib/System.Threading/Thread.cs
===================================================================
--- class/corlib/System.Threading/Thread.cs (revisione 160737)
+++ class/corlib/System.Threading/Thread.cs (copia locale)
@@ -976,8 +976,12 @@
{
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");
+ if (maxStackSize < 262144)
+ maxStackSize = 262144;
+ if ((maxStackSize & 0xffff) != 0)
+ maxStackSize = (maxStackSize & 0xffff)+0x10000;
threadstart = start;
Internal.stack_size = maxStackSize;
@@ -995,8 +999,12 @@
{
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");
+ if (maxStackSize < 262144)
+ maxStackSize = 262144;
+ if ((maxStackSize & 0xffff) != 0)
+ maxStackSize = (maxStackSize & 0xffff)+0x10000;
threadstart = start;
Internal.stack_size = maxStackSize;
More information about the Mono-devel-list
mailing list