Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Brezae <brezaevlad@gmail.com>2017-02-27 23:05:27 +0300
committerGitHub <noreply@github.com>2017-02-27 23:05:27 +0300
commitcb21cf251997fb6caecf6406a8b91ebed7af81c9 (patch)
tree5611b7fafed682890458b8fe89f059ed45edf97b
parentf88093694ba41081548d831df07ecd9071f221cf (diff)
parentbc25f308cabad9bb333a1d596fe89881205cc82f (diff)
Merge pull request #4434 from BrzVlad/fix-unload-hang
[threads] Don't ignore abort requests in abort protected blocks
-rw-r--r--mono/metadata/threads.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c
index c756a06c940..3461f81e325 100644
--- a/mono/metadata/threads.c
+++ b/mono/metadata/threads.c
@@ -4844,13 +4844,6 @@ async_abort_critical (MonoThreadInfo *info, gpointer ud)
if (mono_get_eh_callbacks ()->mono_install_handler_block_guard (mono_thread_info_get_suspend_state (info)))
return MonoResumeThread;
- /*
- The target thread is running at least one protected block, which must not be interrupted, so we give up.
- The protected block code will give them a chance when appropriate.
- */
- if (mono_thread_get_abort_prot_block_count (thread) > 0)
- return MonoResumeThread;
-
/*someone is already interrupting it*/
if (!mono_thread_set_interruption_requested (thread))
return MonoResumeThread;