<br><font size=2 face="sans-serif">Does someone have an actual test case
(as simple as the one shown here) that DOES exhibit the problem? And can
they say what version of mono, what OS (distro, version, and kernel release),
and which processor (and how many?).</font>
<br><font size=2 face="sans-serif"><br>
Best regards<br>
Alan<br>
-------------------<br>
T.J. Watson Research Center, Hawthorne, NY<br>
1-914-784-7286<br>
alan_webb@us.ibm.com</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Diva Canto <diva@metaverseink.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">opensim-dev@lists.berlios.de</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">01/13/2009 11:58 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">[Opensim-dev] .NET / Mono lock(obj)
statement</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Hi everyone,<br>
<br>
Just got back from vacation to TP grief caused by extra locking <br>
introduced in 7982. The extra locking is all good, but it seems that <br>
certain things confuse the heck out of mono, so I thought I'd bring up
<br>
the issue here -- I'm pretty sure this problem occurs in other places of
<br>
the code too, so it's good to know what to expect. I'd certainly like to
<br>
find out more about the .NET spec.<br>
<br>
Here's a simplified version of the problem:<br>
<br>
lock (a)<br>
{<br>
foo();<br>
}<br>
<br>
void foo()<br>
{<br>
lock (a)<br>
{<br>
...<br>
}<br>
}<br>
<br>
(the real situation is a bit more complicated; foo() involves a <br>
delegate; but ignore that)<br>
<br>
In Java, this situation does NOT result in locking, because it's the <br>
same thread that's acquiring object a. I can't find the spec for .NET <br>
for this particular issue, but I'd be very surprised if it is different
<br>
from Java. Nevertheless, mono was deadlocking here; Windows was not. I
<br>
find the mono behavior very strange.<br>
<br>
Crista<br>
<br>
_______________________________________________<br>
Opensim-dev mailing list<br>
Opensim-dev@lists.berlios.de<br>
</font></tt><a href="https://lists.berlios.de/mailman/listinfo/opensim-dev"><tt><font size=2>https://lists.berlios.de/mailman/listinfo/opensim-dev</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>