[Mono-bugs] [Bug 71274][Nor] Changed - finalizer-... tests randomly crash on x86 (Environment.Exit race)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 7 Apr 2005 14:49:07 -0400 (EDT)

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 vargaz@gmail.com.


--- shadow/71274	2005-02-24 12:08:25.000000000 -0500
+++ shadow/71274.tmp.12182	2005-04-07 14:49:07.000000000 -0400
@@ -29,6 +29,16 @@
 ------- Additional Comments From vargaz@gmail.com  2005-01-17 07:21 -------
 It worked before that change.
 ------- Additional Comments From vargaz@gmail.com  2005-02-24 12:07 -------
 *** Bug 72970 has been marked as a duplicate of this bug. ***
+------- Additional Comments From vargaz@gmail.com  2005-04-07 14:49 -------
+One problem with suspending threads at shutdown is that the
+thread->synch_lock lock is also used by managed code, so it is possible
+for a thread to acquire another threads lock in managed code, then
+become suspended while still holding that lock, blocking all access to
+the locked thread. A solution would be to move all locking related
+stuff in the Thread class to unmanaged code.