Remove unnecessary runtime lookup for constrained callvirt (#73823)
authorTomáš Rylek <trylek@microsoft.com>
Wed, 24 Aug 2022 20:57:17 +0000 (22:57 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Aug 2022 20:57:17 +0000 (22:57 +0200)
commit24d185e53ad52319799f345f38c5c4fb6377e3a0
treee9f186684b3471eade0364bae1d8661c94b3fce4
parenta07f2e99ca64a4854e3ac919d497b814aeb0922b
Remove unnecessary runtime lookup for constrained callvirt (#73823)

In my change adding support for default static virtual interface
method implementations I made a subtle bug that caused
behavioral change for some pre-existing constrained virtual calls
that newly started to require runtime lookup. This is unnecessary
and perf-negative, I have modified the code so that my change
kicks in only for static virtual methods.

Thanks

Tomas
src/coreclr/vm/jitinterface.cpp