diff --git a/src/coreclr/vm/amd64/asmconstants.h b/src/coreclr/vm/amd64/asmconstants.h index 4cc95b63d30efb..f6507886d6bda0 100644 --- a/src/coreclr/vm/amd64/asmconstants.h +++ b/src/coreclr/vm/amd64/asmconstants.h @@ -563,19 +563,7 @@ ASMCONSTANTS_C_ASSERT(OFFSETOF__ThreadLocalInfo__m_pThread == offsetof(ThreadLoc #endif ASMCONSTANTS_C_ASSERT(OFFSETOF__InterpMethod__pCallStub == offsetof(InterpMethod, pCallStub)) -#ifdef TARGET_UNIX -#ifdef _DEBUG -#define OFFSETOF__Thread__m_pInterpThreadContext 0xaf8 -#else // _DEBUG -#define OFFSETOF__Thread__m_pInterpThreadContext 0x290 -#endif // _DEBUG -#else // TARGET_UNIX -#ifdef _DEBUG -#define OFFSETOF__Thread__m_pInterpThreadContext 0xb50 -#else // _DEBUG -#define OFFSETOF__Thread__m_pInterpThreadContext 0x2d8 -#endif // _DEBUG -#endif // TARGET_UNIX +#define OFFSETOF__Thread__m_pInterpThreadContext 0x30 ASMCONSTANTS_C_ASSERT(OFFSETOF__Thread__m_pInterpThreadContext == offsetof(Thread, m_pInterpThreadContext)) #define OFFSETOF__InterpThreadContext__pStackPointer 0x10 diff --git a/src/coreclr/vm/arm/asmconstants.h b/src/coreclr/vm/arm/asmconstants.h index fd810c0ec5ec86..79c27095656a39 100644 --- a/src/coreclr/vm/arm/asmconstants.h +++ b/src/coreclr/vm/arm/asmconstants.h @@ -211,11 +211,7 @@ ASMCONSTANTS_C_ASSERT(OFFSETOF__ThreadLocalInfo__m_pThread == offsetof(ThreadLoc #endif ASMCONSTANTS_C_ASSERT(OFFSETOF__InterpMethod__pCallStub == offsetof(InterpMethod, pCallStub)) -#ifdef TARGET_UNIX -#define OFFSETOF__Thread__m_pInterpThreadContext 0x630 -#else // TARGET_UNIX -#define OFFSETOF__Thread__m_pInterpThreadContext 0x0 -#endif // TARGET_UNIX +#define OFFSETOF__Thread__m_pInterpThreadContext 0x1c ASMCONSTANTS_C_ASSERT(OFFSETOF__Thread__m_pInterpThreadContext == offsetof(Thread, m_pInterpThreadContext)) #define OFFSETOF__InterpThreadContext__pStackPointer 0x8 diff --git a/src/coreclr/vm/arm64/asmconstants.h b/src/coreclr/vm/arm64/asmconstants.h index 8367b03a967d99..afb49d97160dc4 100644 --- a/src/coreclr/vm/arm64/asmconstants.h +++ b/src/coreclr/vm/arm64/asmconstants.h @@ -298,15 +298,7 @@ ASMCONSTANTS_C_ASSERT(OFFSETOF__ThreadLocalInfo__m_pThread == offsetof(ThreadLoc #endif ASMCONSTANTS_C_ASSERT(OFFSETOF__InterpMethod__pCallStub == offsetof(InterpMethod, pCallStub)) -#ifdef TARGET_UNIX -#ifdef _DEBUG -#define OFFSETOF__Thread__m_pInterpThreadContext 0xb20 -#else // _DEBUG -#define OFFSETOF__Thread__m_pInterpThreadContext 0x2b8 -#endif // _DEBUG -#else // TARGET_UNIX -#define OFFSETOF__Thread__m_pInterpThreadContext 0xb48 -#endif // TARGET_UNIX +#define OFFSETOF__Thread__m_pInterpThreadContext 0x30 ASMCONSTANTS_C_ASSERT(OFFSETOF__Thread__m_pInterpThreadContext == offsetof(Thread, m_pInterpThreadContext)) #define OFFSETOF__InterpThreadContext__pStackPointer 0x10 diff --git a/src/coreclr/vm/loongarch64/asmconstants.h b/src/coreclr/vm/loongarch64/asmconstants.h index 3ddc93bf34c396..d675d3180638aa 100644 --- a/src/coreclr/vm/loongarch64/asmconstants.h +++ b/src/coreclr/vm/loongarch64/asmconstants.h @@ -218,7 +218,7 @@ ASMCONSTANTS_C_ASSERT(StubPrecodeData__SecretParam == offsetof(StubPrecod #define OFFSETOF__InterpMethod__pCallStub 0x20 ASMCONSTANTS_C_ASSERT(OFFSETOF__InterpMethod__pCallStub == offsetof(InterpMethod, pCallStub)) -#define OFFSETOF__Thread__m_pInterpThreadContext 0xB20 +#define OFFSETOF__Thread__m_pInterpThreadContext 0x30 ASMCONSTANTS_C_ASSERT(OFFSETOF__Thread__m_pInterpThreadContext == offsetof(Thread, m_pInterpThreadContext)) #define OFFSETOF__InterpThreadContext__pStackPointer 0x10 diff --git a/src/coreclr/vm/riscv64/asmconstants.h b/src/coreclr/vm/riscv64/asmconstants.h index bc8f8a02444529..de493c425bf66e 100644 --- a/src/coreclr/vm/riscv64/asmconstants.h +++ b/src/coreclr/vm/riscv64/asmconstants.h @@ -231,7 +231,7 @@ ASMCONSTANTS_C_ASSERT(OFFSETOF__ThreadLocalInfo__m_pThread == offsetof(ThreadLoc #endif ASMCONSTANTS_C_ASSERT(OFFSETOF__InterpMethod__pCallStub == offsetof(InterpMethod, pCallStub)) -#define OFFSETOF__Thread__m_pInterpThreadContext 0xB20 +#define OFFSETOF__Thread__m_pInterpThreadContext 0x30 ASMCONSTANTS_C_ASSERT(OFFSETOF__Thread__m_pInterpThreadContext == offsetof(Thread, m_pInterpThreadContext)) #define OFFSETOF__InterpThreadContext__pStackPointer 0x10 diff --git a/src/coreclr/vm/threads.h b/src/coreclr/vm/threads.h index 07273a9b9c2843..45c39a3354033d 100644 --- a/src/coreclr/vm/threads.h +++ b/src/coreclr/vm/threads.h @@ -902,6 +902,13 @@ class Thread // we fire the AllocationTick event. It's only for tooling purpose. TypeHandle m_thAllocContextObj; +#ifdef FEATURE_INTERPRETER +public: + InterpThreadContext *m_pInterpThreadContext; + InterpThreadContext* GetInterpThreadContext(); + InterpThreadContext* GetOrCreateInterpThreadContext(); +#endif // FEATURE_INTERPRETER + #ifndef TARGET_UNIX private: _NT_TIB *m_pTEB; @@ -3750,13 +3757,6 @@ class Thread bool m_hasPendingActivation; friend struct ::cdac_data; - -#ifdef FEATURE_INTERPRETER -public: - InterpThreadContext *m_pInterpThreadContext; - InterpThreadContext* GetInterpThreadContext(); - InterpThreadContext* GetOrCreateInterpThreadContext(); -#endif // FEATURE_INTERPRETER }; template<>