[Mono-bugs] [Bug 81720][Nor] New - [PATCH] ThreadState.BackGround bit must be cleared when thread is stopped
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed May 23 14:51:16 EDT 2007
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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=81720
--- shadow/81720 2007-05-23 14:51:16.000000000 -0400
+++ shadow/81720.tmp.12711 2007-05-23 14:51:16.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 81720
+Product: Mono: Runtime
+Version: 1.2
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [PATCH] ThreadState.BackGround bit must be cleared when thread is stopped
+
+When a Thread is stopped, then the ThreadState.BackGround bit is cleared
+on MS.
+
+To reproduce, compile and run the following code snippet:
+
+using System;
+using System.Threading;
+
+class Program
+{
+ static void Start ()
+ {
+ }
+
+ static void Main ()
+ {
+ Thread t = new Thread (new ThreadStart (Start));
+ t.IsBackground = true;
+ Console.WriteLine ("#1: " + t.ThreadState);
+ t.Start ();
+ t.Join ();
+ Console.WriteLine ("#2: " + t.ThreadState);
+ }
+}
+
+Expected result:
+
+#1: Background, Unstarted
+#2: Stopped
+
+Actual result:
+
+#1: Background, Unstarted
+#2: Background, Stopped
+
+I'll a unit test to ThreadTest.cs to prevent regressions.
More information about the mono-bugs
mailing list