Skip to content
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

[release/7.0] Do not emit mangled names in mstat files #75407

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 11, 2022

Backport of #75328 to release/7.0

/cc @MichalStrehovsky

Customer Impact

This fixed an issue in generating managed code statistics in the native AOT compiler. This is an undocumented switch that we can use to help customers understand the size impact of their code (sample here: #73913 (comment)). We'll probably have better tooling for this in 8.0, this is a stopgap.

Testing

Made sure the asp.net scenario can generate mstat file.

Risk

This code only runs when an undocumented property is enabled. The risk is close to zero.

There's a 16 MB limit on total number of bytes in the string heap of an ECMA-335 module.

S.R.Metadata throws an exception when the limit is reached. We can't even generate MSTAT files for an ASP.NET WebApi template.

MSTAT files are useful even without this information, but I would like to generate it in the future. Using some different approach.
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

approved. once we get a green ci we can merge

@carlossanlop
Copy link
Member

The installer CI failure seems unrelated.
Approved and signed off. Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit 5ef3816 into release/7.0 Sep 12, 2022
@carlossanlop carlossanlop deleted the backport/pr-75328-to-release/7.0 branch September 12, 2022 17:12
@ghost ghost locked as resolved and limited conversation to collaborators Oct 12, 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.

4 participants