Commit 3dd878b
authored
[mono][gc] Fix gc descriptor computation for InlineArray structs (#116951)
`compute_class_bitmap` iterates over all ref field slots in the current class so we can produce a GC descriptor. `field_iter` represents how many times the type in question is repeated in the current struct. Instead of bumping the current offset by the size of the repeated field, for each iteration, we were adding `field_offset` which is wrong.1 parent ccf556d commit 3dd878b
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
| 909 | + | |
909 | 910 | | |
910 | | - | |
| 911 | + | |
| 912 | + | |
911 | 913 | | |
| 914 | + | |
| 915 | + | |
912 | 916 | | |
913 | 917 | | |
914 | 918 | | |
| |||
973 | 977 | | |
974 | 978 | | |
975 | 979 | | |
976 | | - | |
| 980 | + | |
977 | 981 | | |
978 | 982 | | |
979 | 983 | | |
| |||
0 commit comments