Commit 1031b6e
Fix handling of IDynamicInterfaceCastable wrt CastCache (#110007)
Fixes #108229.
The actual fix is the addition of an `if` check where it originally wasn't. I also fixed the other checks for consistency - positive checks are fine to cache, and negative checks against non-interface targets are also fine to cache.
Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Co-authored-by: Jeff Schwartz <jeffschw@microsoft.com>1 parent 7bbc36d commit 1031b6e
File tree
2 files changed
+37
-16
lines changed- src
- coreclr/nativeaot/Runtime.Base/src/System/Runtime
- tests/nativeaot/SmokeTests/UnitTests
2 files changed
+37
-16
lines changedLines changed: 15 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
1069 | | - | |
| 1069 | + | |
| 1070 | + | |
1070 | 1071 | | |
1071 | | - | |
1072 | | - | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1073 | 1077 | | |
1074 | 1078 | | |
1075 | 1079 | | |
| |||
1252 | 1256 | | |
1253 | 1257 | | |
1254 | 1258 | | |
1255 | | - | |
| 1259 | + | |
| 1260 | + | |
1256 | 1261 | | |
1257 | | - | |
| 1262 | + | |
1258 | 1263 | | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | 1264 | | |
1263 | 1265 | | |
1264 | 1266 | | |
| |||
1293 | 1295 | | |
1294 | 1296 | | |
1295 | 1297 | | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
1304 | 1303 | | |
1305 | 1304 | | |
1306 | 1305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
738 | 739 | | |
739 | 740 | | |
740 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
741 | 763 | | |
742 | 764 | | |
743 | 765 | | |
| |||
0 commit comments