From: Andrew Au Date: Fri, 30 Nov 2018 21:40:44 +0000 (-0800) Subject: Eliminate the requirement that abort requires no lock held on the current thread... X-Git-Tag: submit/tizen/20210909.063632~11030^2~3196 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=427e0c7f31c719b77f8e62adb60df8e669151c01;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Eliminate the requirement that abort requires no lock held on the current thread (dotnet/coreclr#21206) Commit migrated from https://github.com/dotnet/coreclr/commit/08d9c11bdf09837ee39aad4766091ce44e6ee837 --- diff --git a/src/coreclr/src/vm/threadsuspend.cpp b/src/coreclr/src/vm/threadsuspend.cpp index 67acec2..f33d38e 100644 --- a/src/coreclr/src/vm/threadsuspend.cpp +++ b/src/coreclr/src/vm/threadsuspend.cpp @@ -1121,12 +1121,6 @@ BOOL Thread::ReadyForAsyncException() return FALSE; } - // If we are doing safe abort, we can not abort a thread if it has locks. - if (m_AbortType == EEPolicy::TA_Safe && HasLockInCurrentDomain()) { - STRESS_LOG0(LF_APPDOMAIN, LL_INFO10, "in Thread::ReadyForAbort HasLock\n"); - return FALSE; - } - REGDISPLAY rd; Frame *pStartFrame = NULL;