Revert "Do not mark implicit byrefs with GTF_GLOB_REF" (#66415)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Thu, 10 Mar 2022 05:10:10 +0000 (06:10 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Mar 2022 05:10:10 +0000 (06:10 +0100)
commit7e7736dc4309242ee4a326d987c87a09a2c758ba
tree4932b1c5069657b1eed76bba9594a6019bf83ee0
parent78083e7dd0d688c47c6bfbf2538e8032c0c023ae
Revert "Do not mark implicit byrefs with GTF_GLOB_REF" (#66415)

* Revert "Do not mark implicit byrefs with GTF_GLOB_REF (#66266)"

This reverts commit 0a684281f661f5520ad7f358a5056a2eed5b50ba. This is
currently not safe to do in the JIT because we clear out address
exposure information in fgRetypeImplicitByRefArgs() and thus do not have
the necessary information in morph to know if indirections off of
implicit byrefs are global or not.

* Add a test
src/coreclr/jit/compiler.hpp
src/coreclr/jit/morph.cpp
src/tests/JIT/Regression/JitBlue/Runtime_66414/Runtime_66414.cs [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_66414/Runtime_66414.csproj [new file with mode: 0644]