Return the result of PAL_InjectActivation in Thread::InjectGcSuspension (#44731)
authorIlia <ki.stfu@gmail.com>
Fri, 4 Dec 2020 04:50:12 +0000 (07:50 +0300)
committerGitHub <noreply@github.com>
Fri, 4 Dec 2020 04:50:12 +0000 (20:50 -0800)
src/coreclr/src/vm/threadsuspend.cpp

index 89824f3..087fac8 100644 (file)
@@ -6185,10 +6185,7 @@ bool Thread::InjectGcSuspension()
 
     HANDLE hThread = GetThreadHandle();
     if (hThread != INVALID_HANDLE_VALUE)
-    {
-        ::PAL_InjectActivation(hThread);
-        return true;
-    }
+        return ::PAL_InjectActivation(hThread);
 
     return false;
 }