[Mono-bugs] [Bug 651546] Monitor.Enter leaves orphaned locks when threads are aborted

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 5 07:21:27 EDT 2010



--- Comment #8 from Rolf Bjarne Kvinge <rkvinge at novell.com> 2010-11-05 12:21:26 CET ---
There is a bug for sure, Monitor.Enter should not leave the lock locked if it
throws an exception.

I see now that my explanation might have been somewhat confusing - our problem
is that we return from mono_monitor_try_enter_internal with a pending TAE and
with the lock locked. Then the monitor_enter wrapper throws the TAE. Maybe it
would work if the monitor_enter wrapper checks for TAE only if the monitor
wasn't locked, something like the try_enter_with_atomic_var icall?

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list