Author: gonzalo
Date: 2005-05-06 00:55:54 -0400 (Fri, 06 May 2005)
New Revision: 44107
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/monitor.c
Log:
2005-05-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* monitor.c: ignore calls to Monitor.Exit even if no one ever called
Monitor.Enter on the object.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2005-05-06 03:38:25 UTC (rev 44106)
+++ trunk/mono/mono/metadata/ChangeLog 2005-05-06 04:55:54 UTC (rev 44107)
@@ -1,3 +1,8 @@
+2005-05-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * monitor.c: ignore calls to Monitor.Exit even if no one ever called
+ Monitor.Enter on the object.
+
2005-05-05 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* threads.c: Enable the wait for running threads when exiting.
Modified: trunk/mono/mono/metadata/monitor.c
===================================================================
--- trunk/mono/mono/metadata/monitor.c 2005-05-06 03:38:25 UTC (rev 44106)
+++ trunk/mono/mono/metadata/monitor.c 2005-05-06 04:55:54 UTC (rev 44107)
@@ -338,7 +338,7 @@
mon = obj->synchronisation;
if (mon == NULL) {
- mono_raise_exception (mono_get_exception_synchronization_lock
("Not locked"));
+ /* No one ever used Enter. Just ignore the Exit request as MS
does */
return;
}
if (mon->owner != GetCurrentThreadId ()) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches