dotnet / dotnet/runtime

Access checks triggered by the JIT may load generic types instantiated over the type variables of the generic method/generic type

Open
#120,554 5 comments 2 reactions 3 assignees Claimed by @davidwrighton View on GitHub
area-TypeSystem-coreclr
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

These could be avoided by either
1. Disabling access checks entirely for some/all assemblies. Notably we could probably avoid doing this for anything in System.Private.CoreLib
2. Changing the access checks to do access checks on the various typedef's referred to by the typespec/methodspec instead of actually loading them if the typespec/methodspec uses an MVAR/VAR in the spec.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.