Repository navigation
[cDAC] Cache resolved code range sections - #136598
Merged
max-charlamb merged 1 commit intoOct 28, 2026
Merged
Conversation
Cache successful instruction-pointer range resolutions until flush and retain the resolved section in CodeBlock. Reuse it for classification and unwind-related queries across EE, interpreter, and ReadyToRun code. Preserve existing behavior for misses. Co-authored-by: Copilot <[email protected]> Copilot-Session: de3eab4e-b090-430a-8e30-6b204fb1519a
|
Azure Pipelines: Successfully started running 4 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag |
max-charlamb
marked this pull request as ready for review
October 28, 2026 19:14
rcj1
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cache instruction-pointer-to-range-section resolutions in
ExecutionManagerCoreand retain the resolved section in eachCodeBlock. This avoids repeating range-map traversal for code classification, unwind information, and related queries.Clear both caches on every target flush. Cache successful resolutions only, preserving existing lookup behavior for misses. Update the EE, interpreter, and ReadyToRun code-block construction sites together.
Performance
This is an isolated change against the same unoptimized cDAC at
9f06f271b8aa0cbb073b2bb6f85b16da576e6eaa, without caller-context reuse or the other enumerator optimizations.Enumeration-only BenchmarkDotNet comparison over the same six immutable full snapshots. Each invocation uses a fresh enumerator; activation, hashing, coverage checks, and cleanup are outside timing. This does not measure copying heap contents or writing a dump.
Windows x64 Hyper-V VM, AMD EPYC 7763, Release NativeAOT, SDK
11.0.100-rc.2.26504.105. Three launches, five warmups, thirty actual iterations per launch: 90 measured samples for each of 54 provider/workload/mode cases.These are VM measurements. The consistent complex/stack-heavy wins are the motivation; small/simple differences should not be treated as established improvements. Per-case standard deviations and full raw reports are retained locally.
Note
This description was generated with GitHub Copilot.