Commit c527b09
[release/10.0] Fix issue with array interface devirtualization (#120371)
* Fix issue with array interface devirtualization
The instantiated methods should use the parameter type of the interface,
not the element type of the array.
Fixes #120270.
* review feedback
* add test that fails for ref type arrays
* revise tests to not hard code the name of the enumerator type
---------
Co-authored-by: Andy Ayers <[email protected]>1 parent a402595 commit c527b09
File tree
3 files changed
+118
-15
lines changed- src
- coreclr/vm
- tests/JIT/Regression/JitBlue/Runtime_120270
3 files changed
+118
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8613 | 8613 | | |
8614 | 8614 | | |
8615 | 8615 | | |
| 8616 | + | |
| 8617 | + | |
| 8618 | + | |
| 8619 | + | |
| 8620 | + | |
| 8621 | + | |
8616 | 8622 | | |
8617 | 8623 | | |
8618 | 8624 | | |
8619 | 8625 | | |
8620 | 8626 | | |
8621 | 8627 | | |
8622 | | - | |
8623 | | - | |
8624 | | - | |
8625 | | - | |
8626 | | - | |
8627 | | - | |
8628 | 8628 | | |
8629 | 8629 | | |
8630 | 8630 | | |
| |||
8650 | 8650 | | |
8651 | 8651 | | |
8652 | 8652 | | |
8653 | | - | |
8654 | | - | |
8655 | | - | |
8656 | | - | |
8657 | | - | |
8658 | | - | |
8659 | | - | |
8660 | | - | |
8661 | | - | |
| 8653 | + | |
| 8654 | + | |
| 8655 | + | |
| 8656 | + | |
| 8657 | + | |
| 8658 | + | |
8662 | 8659 | | |
8663 | 8660 | | |
8664 | 8661 | | |
| |||
Lines changed: 97 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments