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

SPMI: tolerate null pResolvedToken #48208

Merged

Conversation

AndyAyersMS
Copy link
Member

We can see this from getTailCallHelpers for indirect calls.
Fixes a few recording failures when running coreclr tests under spmi.

We can see this from `getTailCallHelpers` for indirect calls.
Fixes a few recording failures when running coreclr tests under spmi.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Feb 12, 2021
@AndyAyersMS
Copy link
Member Author

@BruceForstall PTAL
cc @dotnet/jit-contrib

pResolvedToken->cbTypeSpec = (ULONG)tokenOut.cbTypeSpec;
pResolvedToken->pMethodSpec = (PCCOR_SIGNATURE)buffers->GetBuffer(tokenOut.pMethodSpec_Index);
pResolvedToken->cbMethodSpec = (ULONG)tokenOut.cbMethodSpec;
if (pResolvedToken != nullptr)
Copy link
Member

Choose a reason for hiding this comment

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

This is only called for resolveToken and tryResolveToken. Can pResolvedToken ever be null for those?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably not? I can try to minimize where we do this, if you think it's important.

Copy link
Member

Choose a reason for hiding this comment

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

I guess it's not that important.

@AndyAyersMS AndyAyersMS merged commit 21a03c3 into dotnet:master Feb 12, 2021
@AndyAyersMS AndyAyersMS deleted the SpmiTolerateNullResolvedToken branch February 12, 2021 20:54
@AndyAyersMS AndyAyersMS mentioned this pull request Feb 12, 2021
54 tasks
@ghost ghost locked as resolved and limited conversation to collaborators Mar 14, 2021
@AndyAyersMS AndyAyersMS restored the SpmiTolerateNullResolvedToken branch October 11, 2024 21:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants