Skip to content

[release/5.0-rc2] Fix ldtoken for generic RuntimeMethodHandle - #42141

Merged
jkotas merged 1 commit into
release/5.0-rc2from
backport/pr-42112-to-release/5.0-rc2
Sep 15, 2020
Merged

[release/5.0-rc2] Fix ldtoken for generic RuntimeMethodHandle#42141
jkotas merged 1 commit into
release/5.0-rc2from
backport/pr-42112-to-release/5.0-rc2

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Sep 11, 2020

Copy link
Copy Markdown
Contributor

Backport of #42112 to release/5.0-rc2

Fixes#41674

/cc @jkotas

Customer Impact

Regression from 3.1. Introduce by .NET 5 codegen optimizations.

System.Linq.Expression referencing interface method on a generic throws InvalidProgramException.

Testing

  • Added low level (IL) and high level (System.Linq.Expression) targeted tests
  • Regular CI test pass

Risk

Low

ldtoken for generic RuntimeMethodHandle in non-generic method triggered generic dictionary lookup due to normalization of MethodDescs for reflection. It lead to InvalidProgramException later.
Fixes#41674
@jkotasjkotas added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-consider Issue for next servicing release review labels Sep 11, 2020
@jkotasjkotas added this to the 5.0.0 milestone Sep 11, 2020

@jeffschwMSFTjeffschwMSFT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved. I will take it for RC2 consideration

@leecowleecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 15, 2020
@jkotas
jkotas merged commit acdf37b into release/5.0-rc2Sep 15, 2020
@jkotas
jkotas deleted the backport/pr-42112-to-release/5.0-rc2 branch September 15, 2020 17:52
@ghostghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jeffschwMSFT@davidwrighton@leecow@jkotas