[Mono-bugs] [Bug 78241][Maj] Changed - CreateThread failure/out of wapi handles slots

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 9 20:00:15 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by robertj at gmx.net.

http://bugzilla.ximian.com/show_bug.cgi?id=78241

--- shadow/78241	2006-05-04 15:08:15.000000000 -0400
+++ shadow/78241.tmp.11607	2006-05-09 20:00:15.000000000 -0400
@@ -471,6 +471,30 @@
 
 
 ------- Additional Comments From robertj at gmx.net  2006-05-04 15:08 -------
 The thread handle issue is best reproducible under Linux 2.4 x86_32
 Under 2.6 (or it's x86_64?) only one test (the timer) is reliable.
 
+
+------- Additional Comments From robertj at gmx.net  2006-05-09 20:00 -------
+For the records: my tests involving the thread pool can be
+best reproduced on non-NPTL systems. It's WaitForSingleObjectEx ()
+which raises the ref count by calling GetCurrentThread ()
+This happens in async_invoke_thread ().
+
+The system where I'm testing on is up and running since 4
+days after I've applied this tiny patch.
+
+Index: io-layer/threads.c
+===================================================================
+--- io-layer/threads.c  (revision 60364)
++++ io-layer/threads.c  (working copy)
+@@ -648,7 +648,7 @@
+        if (!ret) {
+                ret = thread_attach (NULL);
+        } else {
+-               _wapi_handle_ref (ret);
++           /*_wapi_handle_ref (ret);*/
+        }
+
+        return(ret);
+


More information about the mono-bugs mailing list