Skip to content

Commit ecb426a

Browse files
committed
Back out FaultingExceptionFrame changes
1 parent 274b760 commit ecb426a

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/coreclr/vm/amd64/asmconstants.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ ASMCONSTANTS_C_ASSERT(OFFSETOF__CONTEXT__VectorRegister
449449
ASMCONSTANTS_C_ASSERT(SIZEOF__FaultingExceptionFrame
450450
== sizeof(FaultingExceptionFrame));
451451

452-
#define OFFSETOF__FaultingExceptionFrame__m_fFilterExecuted (SIZEOF__Frame + 0x8)
452+
#define OFFSETOF__FaultingExceptionFrame__m_fFilterExecuted 0x10
453453
ASMCONSTANTS_C_ASSERT(OFFSETOF__FaultingExceptionFrame__m_fFilterExecuted
454454
== offsetof(FaultingExceptionFrame, m_fFilterExecuted));
455455

456-
#define OFFSETOF__FaultingExceptionFrame__m_SSP (SIZEOF__Frame)
456+
#define OFFSETOF__FaultingExceptionFrame__m_SSP (0x20 + SIZEOF__CONTEXT)
457457
ASMCONSTANTS_C_ASSERT(OFFSETOF__FaultingExceptionFrame__m_SSP
458458
== offsetof(FaultingExceptionFrame, m_SSP));
459459

src/coreclr/vm/frames.h

+4-6
Original file line numberDiff line numberDiff line change
@@ -933,10 +933,6 @@ class FaultingExceptionFrame : public Frame
933933
{
934934
friend class CheckAsmOffsets;
935935

936-
#ifdef TARGET_AMD64
937-
TADDR m_SSP;
938-
#endif
939-
940936
#ifndef FEATURE_EH_FUNCLETS
941937
#ifdef TARGET_X86
942938
DWORD m_Esp;
@@ -948,11 +944,13 @@ class FaultingExceptionFrame : public Frame
948944
#else // FEATURE_EH_FUNCLETS
949945
BOOL m_fFilterExecuted; // Flag for FirstCallToHandler
950946
TADDR m_ReturnAddress;
951-
// This T_CONTEXT field needs to be the last field in the class because it is a
952-
// different size between Linux (pal.h) and the Windows cross-DAC (winnt.h).
953947
T_CONTEXT m_ctx;
954948
#endif // !FEATURE_EH_FUNCLETS
955949

950+
#ifdef TARGET_AMD64
951+
TADDR m_SSP;
952+
#endif
953+
956954
public:
957955
#ifndef DACCESS_COMPILE
958956
FaultingExceptionFrame() : Frame(FrameIdentifier::FaultingExceptionFrame) {

0 commit comments

Comments
 (0)