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

[cdac] Handle no method def token when trying to get the IL version state #110449

Merged
merged 3 commits into from
Dec 9, 2024

Conversation

elinor-fung
Copy link
Member

Some methods have a nil token - for example, special runtime methods like array functions. When we tried to look up their IL version state, we were throwing an exception. Methods like this will have no versioning state, so check for a nil token and skip the lookup.

Found this while trying to finish out RuntimeTypeSystem_1.GetMethodClassificationDataType for #109426 when doing a !dumpmd for an array function. I also uncovered another issue where we aren't getting the native code slot correctly for some methods, but haven't fixed that yet - will be a separate change.

Contributes to #99302, #109426

@elinor-fung elinor-fung added this to the 10.0.0 milestone Dec 5, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 5, 2024
@elinor-fung elinor-fung added area-Diagnostics-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Dec 5, 2024
@elinor-fung elinor-fung merged commit 016d356 into dotnet:main Dec 9, 2024
139 of 147 checks passed
@elinor-fung elinor-fung deleted the cdac-versionState-nilToken branch December 9, 2024 18:56
hez2010 pushed a commit to hez2010/runtime that referenced this pull request Dec 14, 2024
…tate (dotnet#110449)

Some methods have a nil token - for example, special runtime methods like array functions. When we tried to look up their IL version state, we were throwing an exception. Methods like this will have no versioning state, so check for a nil token and skip the lookup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants