From b99c784444acb70c7db91e4daa68c90096b33abb Mon Sep 17 00:00:00 2001 From: Max Charlamb <44248479+max-charlamb@users.noreply.github.com> Date: Fri, 18 Sep 2026 12:24:09 -0400 Subject: [PATCH] [cDAC] Export interpreter JIT manager descriptor (#134190) Expose `ExecutionManager::m_pInterpreterJitManager` as the optional `InterpreterJitManagerAddress` cDAC data-descriptor global when CoreCLR is built with `FEATURE_INTERPRETER`. Will be used by #134072 for cDAC dump enumeration. Co-authored-by: Max Charlamb Copilot-Session: b507532c-3857-4e61-86a9-69fe22ec157b --- src/coreclr/vm/codeman.h | 3 +++ src/coreclr/vm/datadescriptor/datadescriptor.inc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/coreclr/vm/codeman.h b/src/coreclr/vm/codeman.h index 41d59626f5216f..769b77e24ef882 100644 --- a/src/coreclr/vm/codeman.h +++ b/src/coreclr/vm/codeman.h @@ -2735,6 +2735,9 @@ struct cdac_data { static constexpr void* const CodeRangeMapAddress = (void*)&ExecutionManager::g_codeRangeMap.Data[0]; static constexpr PTR_EEJitManager* EEJitManagerAddress = &ExecutionManager::m_pEEJitManager; +#ifdef FEATURE_INTERPRETER + static constexpr PTR_InterpreterJitManager* InterpreterJitManagerAddress = &ExecutionManager::m_pInterpreterJitManager; +#endif // FEATURE_INTERPRETER #ifdef TARGET_WASM static constexpr FunctionTableIndexRangeSection** FunctionTableIndexRangeListAddress = &ExecutionManager::s_pFunctionTableIndexRangeList; #endif // TARGET_WASM diff --git a/src/coreclr/vm/datadescriptor/datadescriptor.inc b/src/coreclr/vm/datadescriptor/datadescriptor.inc index d9e25e04380be1..b24524ffd778cb 100644 --- a/src/coreclr/vm/datadescriptor/datadescriptor.inc +++ b/src/coreclr/vm/datadescriptor/datadescriptor.inc @@ -1815,6 +1815,9 @@ CDAC_GLOBAL(StressLogEnabled, T_UINT8, 0) #endif CDAC_GLOBAL_POINTER(ExecutionManagerCodeRangeMapAddress, cdac_data::CodeRangeMapAddress) CDAC_GLOBAL_POINTER(EEJitManagerAddress, cdac_data::EEJitManagerAddress) +#ifdef FEATURE_INTERPRETER +CDAC_GLOBAL_POINTER(InterpreterJitManagerAddress, cdac_data::InterpreterJitManagerAddress) +#endif // FEATURE_INTERPRETER #ifdef TARGET_WASM CDAC_GLOBAL_POINTER(FunctionTableIndexRangeList, cdac_data::FunctionTableIndexRangeListAddress) #endif // TARGET_WASM