Access checks triggered by the JIT may load generic types instantiated over the type variables of the generic method/generic type
Open
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
Assessment
This issue has not been assessed yet.