[Mono-dev] [PATCH] appdomain-unload crashes
Gonzalo Paniagua Javier
gonzalo.mono at gmail.com
Fri Nov 7 12:00:23 EST 2008
On Fri, 2008-11-07 at 13:32 -0200, Rodrigo Kumpera wrote:
> Hey guys,
>
> The attached patch fixes the appdomain unloading problem. I can no
> longer get the
> test to crash here.
[...]
I see 2 problems. One which you already pointed out about not executing
the last element. I'm not sure that we should even try to execute it, as
MS documentation says that no new threads are allowed to use the domain
that is unloading and, I guess, we can add that not thread in the
threadpool should switch to use the dying domain.
The other one is that we should block / ignore any new threadpool item
from the domain being unloaded. The attached test, exits quickly on MS
and keeps running forever with Mono.
-Gonzalo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unload.cs
Type: text/x-csharp
Size: 1119 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081107/cdd6feac/attachment.bin
More information about the Mono-devel-list
mailing list