You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe we need to either address this for the .NET 6 shipping release or at least convince ourselves that we don't need to. I think we do because silently violating access rights while emitting the R2R native image violates the principle of R2R vs. JIT equivalence. @jkotas, could you please correct me if I'm wrong?
Violating visibility rules is invalid IL. In general, invalid IL can lead to observable behavior difference between AOT and JIT, or between optimization levels. These differences are by design.
I think that this is nice-to-fix. We should look at it together with all other types of invalid IL detection we can be doing. I think it would be fine to implement these additional checks reactively, only once somebody reports them as a problem.
Activity
MichalStrehovsky commentedon Jul 26, 2019
We should look into sharing the logic with ILVerify: https://github.com/dotnet/corert/blob/28cbd27c5a809c081d6edabb98ab216baf09bf98/src/ILVerification/src/AccessVerificationHelpers.cs
davidwrighton commentedon Jul 10, 2020
This isn't needed for the 5.0 release.
trylek commentedon Feb 7, 2021
I believe we need to either address this for the .NET 6 shipping release or at least convince ourselves that we don't need to. I think we do because silently violating access rights while emitting the R2R native image violates the principle of R2R vs. JIT equivalence. @jkotas, could you please correct me if I'm wrong?
jkotas commentedon Feb 8, 2021
Violating visibility rules is invalid IL. In general, invalid IL can lead to observable behavior difference between AOT and JIT, or between optimization levels. These differences are by design.
I think that this is nice-to-fix. We should look at it together with all other types of invalid IL detection we can be doing. I think it would be fine to implement these additional checks reactively, only once somebody reports them as a problem.
mangod9 commentedon Jul 10, 2021
moving to 7 based on the discussion above.
davidwrighton commentedon Jul 6, 2022
We don't need these.