Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that a native code version only ever gets one entry point that…
… doesn't change (#94542) - Fixed `MethodDesc::SetNativeCodeInterlocked` to use the passed-in expected entry point instead of the current entry point. It seems this is how it used to work before #57707. - It's possible for a method to get jitted multiple times on the same thread due to reentry through class construction. Once a native code version is updated with an entry point, it can run and there are times when it's necessary to look up the native code version corresponding to the currently running code, such as when installing patchpoints. That would be impossible if the entry point is changed meanwhile to a different entry point. Fixes #93849
- Loading branch information