Repository navigation
dotnet-pgo: Filter off-list references when merging MIBCs - #138546
Open
pavelsavara wants to merge 1 commit into
Open
pavelsavara wants to merge 1 commit into
pavelsavara wants to merge 1 commit into
Conversation
Apply the merge assembly allowlist when emitting profile references. Keep type and method histogram samples as unknowns when their targets are excluded, so numeric counters and permitted profile data remain useful. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Tagging subscribers to this area: @dotnet/crossgen-contrib |
Member
Author
|
cc @dotnet/wasm-contrib |
radekdoulik
approved these changes
Nov 30, 2026
This branch has not been deployed
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.
Summary
dotnet-pgo merge --include-referencefilters method groups but can still emit a reference to an excluded assembly through a retained method's PGO data. Browser ReadyToRun profiles collected for #137502 exposed this with application types and methods recorded by framework code.Apply the allowlist when writing those references. Replace excluded type and method handles with unknown samples, omit excluded weighted call targets, and skip methods whose signatures need an excluded assembly. Retain the numeric counters. Merges without an allowlist are unchanged.
Validation
D:\.dotnet\dotnet.exe build .\src\coreclr\tools\dotnet-pgo\tests\dotnet-pgo.Tests.csproj -c Debug '-t:Build;Test' -p:UseDefaultTestHost=true -bl:artifacts\log\dotnet-pgo-after.binlog? build passed with zero warnings and errors; all 9 tests passed. Before the fix, the allowlist regression case failed because the excluded assembly was still in PE metadata.Note
This PR description was prepared with GitHub Copilot.