Commit 48fd2f3
authored
Fix DoesValueTypeContainGCRefs in the interpreter (#121846)
There was a mistake in the implementation that prevented it from working
correctly in some cases. The return value of the getClassSize() is not a
number of slots filled in the array, but a number of GC references in
the array. So if there were e.g. three slots and there was one GC
reference in the second slot, the DoesValueTypeContainGCRefs returned
false.1 parent 3fc131a commit 48fd2f3
1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2886 | 2886 | | |
2887 | 2887 | | |
2888 | 2888 | | |
2889 | | - | |
| 2889 | + | |
2890 | 2890 | | |
2891 | | - | |
2892 | | - | |
2893 | | - | |
2894 | | - | |
2895 | | - | |
2896 | | - | |
2897 | | - | |
2898 | | - | |
2899 | | - | |
| 2891 | + | |
2900 | 2892 | | |
2901 | 2893 | | |
2902 | 2894 | | |
| |||
0 commit comments