Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/coreclr/vm/threads.h')
-rw-r--r--src/coreclr/vm/threads.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/coreclr/vm/threads.h b/src/coreclr/vm/threads.h
index af2a7b32d31..acc23de0cbd 100644
--- a/src/coreclr/vm/threads.h
+++ b/src/coreclr/vm/threads.h
@@ -3292,6 +3292,14 @@ private:
static void __stdcall RedirectedHandledJITCaseForGCStress();
#endif // defined(HAVE_GCCOVER) && USE_REDIRECT_FOR_GCSTRESS
+#ifdef TARGET_X86
+ // RtlRestoreContext is available on x86, but relatively recently.
+ // RestoreContextSimulated uses SEH machinery for a similar result on legacy OS-es.
+ // This function should not be used on new OS-es as the pattern is not
+ // guaranteed to continue working in the future.
+ static void RestoreContextSimulated(Thread* pThread, CONTEXT* pCtx, void* pFrame, DWORD dwLastError);
+#endif
+
friend void CPFH_AdjustContextForThreadSuspensionRace(T_CONTEXT *pContext, Thread *pThread);
#endif // FEATURE_HIJACK && !TARGET_UNIX