[Mono-bugs] [Bug 623281] New: [Regression] Threadpool treats 'min_threads' as 'max_threads'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jul 18 11:30:03 EDT 2010


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: mono-bugs at lists.ximian.com
        ReportedBy: amcgovern at novell.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list