Eliminate the requirement that abort requires no lock held on the current thread...
authorAndrew Au <cshung@gmail.com>
Fri, 30 Nov 2018 21:40:44 +0000 (13:40 -0800)
committerGitHub <noreply@github.com>
Fri, 30 Nov 2018 21:40:44 +0000 (13:40 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/08d9c11bdf09837ee39aad4766091ce44e6ee837

src/coreclr/src/vm/threadsuspend.cpp

index 67acec2..f33d38e 100644 (file)
@@ -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;