Commit da168c7
committed
compiler: Fix inplace tuple updates for an edge case
Fix #10367.
This reverts a30e40e.
In certain edge cases, aggregates are incorrectly marked as unique
when their contained records are not unique. This leads to unsafe
destructive updates and strange runtime behaviours.
If there is a less conservative fix that is more specific for this
edge case, we can revisit.1 parent d196779 commit da168c7
File tree
3 files changed
+34
-23
lines changed- lib/compiler
- src
- test/beam_ssa_check_SUITE_data
3 files changed
+34
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
| 648 | + | |
654 | 649 | | |
655 | 650 | | |
656 | 651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | | - | |
835 | | - | |
| 834 | + | |
| 835 | + | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
839 | | - | |
840 | | - | |
| 838 | + | |
| 839 | + | |
841 | 840 | | |
842 | 841 | | |
843 | 842 | | |
| |||
853 | 852 | | |
854 | 853 | | |
855 | 854 | | |
856 | | - | |
857 | | - | |
858 | | - | |
| 855 | + | |
| 856 | + | |
859 | 857 | | |
860 | 858 | | |
861 | 859 | | |
| |||
868 | 866 | | |
869 | 867 | | |
870 | 868 | | |
871 | | - | |
872 | | - | |
873 | | - | |
| 869 | + | |
| 870 | + | |
874 | 871 | | |
875 | 872 | | |
876 | 873 | | |
| |||
1204 | 1201 | | |
1205 | 1202 | | |
1206 | 1203 | | |
1207 | | - | |
1208 | | - | |
| 1204 | + | |
| 1205 | + | |
1209 | 1206 | | |
1210 | 1207 | | |
1211 | 1208 | | |
| |||
1228 | 1225 | | |
1229 | 1226 | | |
1230 | 1227 | | |
1231 | | - | |
1232 | | - | |
| 1228 | + | |
| 1229 | + | |
1233 | 1230 | | |
1234 | 1231 | | |
1235 | 1232 | | |
| |||
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
282 | | - | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
0 commit comments