[Mono-dev] System.Threading.Monitor::Exit fails in latest trees

Paolo Molaro lupus at ximian.com
Thu Mar 4 11:08:41 EST 2010


On 03/04/10 cpMon wrote:
> I never get a signal when System.Threading.Monitor::Exit gets called too many
> times.

We used to raise an exception, but IIRC, the MS runtime doesn't throw it
either, so we don't anymore.

> Further, I traced it down into the mono 2.6.1 code tree, and
> mono_monitor_exit is never called. The trampoline generates the code, but
> it's never called. Can you provide a quick fix? It seems like a glaring bug.

There is no bug, on your architecture the fast path is optimized and it
won't go to the unmanaged function in the runtime.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-devel-list mailing list