blob: 300faf3ff820570b4fe8e6c7236394d25b6f626a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-as,v 1.3 2014/08/21 07:49:56 wiz Exp $
From FreeBSD: https://bugzilla.novell.com/show_bug.cgi?id=528830
--- mono/metadata/appdomain.c.orig 2014-08-12 16:50:38.000000000 +0000
+++ mono/metadata/appdomain.c
@@ -2457,6 +2457,11 @@ mono_domain_try_unload (MonoDomain *doma
CloseHandle (thread_handle);
unload_data_unref (thread_data);
return;
+ } else if (!mono_thread_has_appdomain_ref (mono_thread_current (), domain) && !(mono_thread_interruption_requested ())) {
+ if (!domain->friendly_name) {
+ CloseHandle (thread_handle);
+ return;
+ }
}
}
CloseHandle (thread_handle);
|