Repository navigation
[cDAC] DacDbi code-version node APIs for ReJIT/SOS - #126980
Conversation
|
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag |
There was a problem hiding this comment.
Pull request overview
Implements cDAC equivalents of legacy DAC DBI code-version node lookup APIs used by SOS/ICorDebug, mapping through existing CodeVersions and ReJIT contracts while preserving HRESULT-style behavior.
Changes:
- Implemented
GetActiveRejitILCodeVersionNodeby resolving(Module, mdMethodDef)→MethodDescand returning the explicit active ReJIT IL node (or 0). - Implemented
GetNativeCodeVersionNodeby matching(MethodDesc, codeStartAddress)against contract-enumerated native code versions and returning an explicit native node (or 0 for synthetic/absent). - Implemented
GetILCodeVersionNodeby mapping an explicit native node → explicit IL node (or 0 for default/synthetic), with DEBUG cross-validation against legacy DAC.
419ac0e to
bb2c01d
Compare
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot <[email protected]>
🤖 Copilot Code Review — PR #126980Note This review was generated by GitHub Copilot. Holistic AssessmentMotivation: This PR implements three DacDbi code version node APIs ( Approach: The implementation follows the established DacDbiImpl pattern (try/catch with HResult, DEBUG-mode legacy validation). The Summary: Detailed Findings
|
Description
Implements the cDAC
DacDbiImplAPIsGetActiveRejitILCodeVersionNode,GetNativeCodeVersionNode, andGetILCodeVersionNodeusing existingCodeVersionsandReJITcontracts.