@@ -396,7 +396,6 @@ VOID DECLSPEC_NORETURN RealCOMPlusThrowInvalidCastException(TypeHandle thCastFro
396396
397397VOID DECLSPEC_NORETURN RealCOMPlusThrowInvalidCastException (OBJECTREF *pObj, TypeHandle thCastTo);
398398
399-
400399#ifndef FEATURE_EH_FUNCLETS
401400
402401#include " eexcp.h"
@@ -510,30 +509,29 @@ BOOL IsThreadHijackedForThreadStop(Thread* pThread, EXCEPTION_RECORD* pEx
510509void AdjustContextForThreadStop (Thread* pThread, T_CONTEXT* pContext);
511510OBJECTREF CreateCOMPlusExceptionObject (Thread* pThread, EXCEPTION_RECORD* pExceptionRecord, BOOL bAsynchronousThreadStop);
512511
512+ #if defined(TARGET_WINDOWS) && defined(TARGET_X86)
513+ // Pop off any SEH handlers we have registered below pTargetSP
514+ VOID PopSEHRecords (LPVOID pTargetSP);
515+
516+ // Misc functions to access and update the SEH chain. Be very, very careful about updating the SEH chain.
517+ PEXCEPTION_REGISTRATION_RECORD GetCurrentSEHRecord ();
518+ VOID SetCurrentSEHRecord (EXCEPTION_REGISTRATION_RECORD *pSEH);
519+ #endif
520+
513521#if !defined(FEATURE_EH_FUNCLETS)
514522EXCEPTION_HANDLER_DECL (COMPlusFrameHandler);
515523EXCEPTION_HANDLER_DECL (COMPlusNestedExceptionHandler);
516524#ifdef FEATURE_COMINTEROP
517525EXCEPTION_HANDLER_DECL (COMPlusFrameHandlerRevCom);
518526#endif // FEATURE_COMINTEROP
519527
520- // Pop off any SEH handlers we have registered below pTargetSP
521- VOID PopSEHRecords (LPVOID pTargetSP);
522-
523528#ifdef DEBUGGING_SUPPORTED
524529VOID UnwindExceptionTrackerAndResumeInInterceptionFrame (ExInfo* pExInfo, EHContext* context);
525530#endif // DEBUGGING_SUPPORTED
526531
527532BOOL PopNestedExceptionRecords (LPVOID pTargetSP, BOOL bCheckForUnknownHandlers = FALSE );
528533VOID PopNestedExceptionRecords (LPVOID pTargetSP, T_CONTEXT *pCtx, void *pSEH);
529534
530- // Misc functions to access and update the SEH chain. Be very, very careful about updating the SEH chain.
531- // Frankly, if you think you need to use one of these function, please
532- // consult with the owner of the exception system.
533- PEXCEPTION_REGISTRATION_RECORD GetCurrentSEHRecord ();
534- VOID SetCurrentSEHRecord (EXCEPTION_REGISTRATION_RECORD *pSEH);
535-
536-
537535#define STACK_OVERWRITE_BARRIER_SIZE 20
538536#define STACK_OVERWRITE_BARRIER_VALUE 0xabcdefab
539537
0 commit comments