diff --git a/src/coreclr/vm/threadsuspend.cpp b/src/coreclr/vm/threadsuspend.cpp index 1411e56ff39e7f..538d1f4b57783b 100644 --- a/src/coreclr/vm/threadsuspend.cpp +++ b/src/coreclr/vm/threadsuspend.cpp @@ -2713,6 +2713,11 @@ void __stdcall Thread::RedirectedHandledJITCase(RedirectReason reason) GCX_PREEMP_NO_DTOR_END(); } +#if defined(FEATURE_HIJACK) && !defined(TARGET_UNIX) + // Make sure that this is cleared to enable redirects again + pThread->ResetThreadState(Thread::TS_GCSuspendRedirected); +#endif + // Once we get here the suspension is over! // We will restore the state as it was at the point of redirection // and continue normal execution.