Commit 0958734
committed
[interp][coreclr] Fix virtual generic calls in interpreter
Fix regression introduced in dotnet#121799
Force intrinsic expansion for new runtime helpers in the interpreter.
Added the new methods and also
NI_System_StubHelpers_NextCallReturnAddress, which has also `//
Unconditionally expanded intrinsic` comment.
This was happening on wasm and possibly on other platforms too,
resulting in unhandled exception. Possibly only happening on platforms
using generic instantiation IL stubs.
```
Unhandled exception. System.Diagnostics.UnreachableException: The program executed an instruction that was thought to be unreachable.
at System.Runtime.CompilerServices.RuntimeHelpers.SetNextCallGenericContext(Void* value) in /Users/rodo/git/runtime-clean/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.cs:line 186
at InterpreterTest.TestVirtual() in /Users/rodo/git/runtime-clean/src/tests/JIT/interpreter/Interpreter.cs:line 1960
at InterpreterTest.RunInterpreterTests() in /Users/rodo/git/runtime-clean/src/tests/JIT/interpreter/Interpreter.cs:line 896
at InterpreterTest.Main(String[] args) in /Users/rodo/git/runtime-clean/src/tests/JIT/interpreter/Interpreter.cs:line 731
Aborted(native code called abort())
```1 parent ffb52e9 commit 0958734
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4071 | 4071 | | |
4072 | 4072 | | |
4073 | 4073 | | |
4074 | | - | |
| 4074 | + | |
| 4075 | + | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
4075 | 4079 | | |
4076 | 4080 | | |
4077 | 4081 | | |
| |||
0 commit comments