From 0dd305c7920a97b9a3e4ad09ae06c502de1101c1 Mon Sep 17 00:00:00 2001 From: Koundinya Veluri Date: Tue, 26 Apr 2022 15:49:40 -0700 Subject: [PATCH] Remove an unnecessary assertion in tiering Fixes https://github.com/dotnet/runtime/issues/65914 --- src/coreclr/vm/tieredcompilation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/vm/tieredcompilation.cpp b/src/coreclr/vm/tieredcompilation.cpp index 9611c33356a938..a905c86efb9c63 100644 --- a/src/coreclr/vm/tieredcompilation.cpp +++ b/src/coreclr/vm/tieredcompilation.cpp @@ -504,9 +504,9 @@ void TieredCompilationManager::BackgroundWorkerStart() { continue; } - _ASSERTE(waitResult == WAIT_TIMEOUT); - // The wait timed out, see if the worker can exit + // The wait timed out, see if the worker can exit. When using the PAL, it may be possible to get WAIT_FAILED in some + // shutdown scenarios, treat that as a timeout too since a signal would not have been observed anyway. LockHolder tieredCompilationLockHolder;