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

Harvest signatures of methods being compiled by the token resolver #57366

Merged
merged 1 commit into from
Aug 14, 2021

Conversation

trylek
Copy link
Member

@trylek trylek commented Aug 13, 2021

Fixes: #56971

I believe this is the primary fix for the issue; when a type only
ever occurs in method signatures in an assembly, never in the
implementation IL, JIT never calls resolveToken for it and so it
doesn't make it to the module token resolver table.

My investigation revealed additional potential problems in the
product around exported type resolution and the IL linker;
I described them in the issue thread but I believe this to be
both the most appropriate and the safest primary fix.

Thanks

Tomas

/cc @dotnet/crossgen-contrib

Fixes: dotnet#56971

I believe this is the primary fix for the issue; when a type only
ever occurs in method signatures in an assembly, never in the
implementation IL, JIT never calls resolveToken for it and so it
doesn't make it to the module token resolver table.

My investigation revealed additional potential problems in the
product around exported type resolution and the IL linker;
I described them in the issue thread but I believe this to be
both the most appropriate and the safest primary fix.

Thanks

Tomas
@trylek trylek added this to the 6.0.0 milestone Aug 13, 2021
@trylek trylek self-assigned this Aug 13, 2021
@trylek trylek closed this Aug 13, 2021
@trylek trylek reopened this Aug 13, 2021
@trylek trylek merged commit 1f26d24 into dotnet:main Aug 14, 2021
@trylek trylek deleted the CompiledMethodSignatureHarvesting branch August 14, 2021 07:50
@ghost ghost locked as resolved and limited conversation to collaborators Sep 13, 2021
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.

Referencing OpenTK.Mathematics crashes the Ready2Run build.
2 participants