Skip to content

Fix generation of .ni.pdb symbols #73747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2022

Conversation

AntonLapounov
Copy link
Member

@AntonLapounov AntonLapounov commented Aug 11, 2022

At present, we emit a symbol for at most one instantiation of each generic method. For instance, System.Private.CoreLib.ni.pdb misses about 27% of the ReadyToRun methods. This fix removes that restriction. Since CodeView does not store the length of a symbol, we cannot leave any gaps and have to report every method.

Fixes #72578. @dotnet/crossgen-contrib

Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing this!

@trylek
Copy link
Member

trylek commented Aug 11, 2022

Why can't we emit symbols for all instantiations?

@jkotas - I believe that's exactly what Anton is fixing here.

@AntonLapounov AntonLapounov merged commit 732b743 into dotnet:main Aug 11, 2022
@AntonLapounov AntonLapounov deleted the FixNIPdbSymbols branch August 11, 2022 09:42
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Profiling x64 processes can’t resolve R2R symbols
2 participants