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

http://bugzilla.novell.com/show_bug.cgi?id=623281#c0


           Summary: [Regression] Threadpool treats 'min_threads' as
                    'max_threads'
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86-64
        OS/Version: openSUSE 11.3
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


Patch attached below fixes the problem:

Index: mono/metadata/threadpool.c
===================================================================
--- mono/metadata/threadpool.c    (revision 160387)
+++ mono/metadata/threadpool.c    (working copy)
@@ -1036,7 +1036,7 @@
     do {
         while (1) {
             n = tp->nthreads;
-            if (n >= tp->min_threads)
+            if (n >= tp->max_threads)
                 return;
             if (InterlockedCompareExchange (&tp->nthreads, n + 1, n) == n)
                 break;

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to