Commit 935e27a
committed
Detect comparisons between large unions or intersections
If their multiplied size is greater than 1E7 (chosen based on the repro
in #41517), then we'll expend a large amount of time and memory
comparing them, so alert the user instead.
Fixes #415171 parent 79ffd03 commit 935e27a
12 files changed
Lines changed: 30681 additions & 3 deletions
File tree
- src/compiler
- tests
- baselines/reference
- cases/compiler
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16812 | 16812 | | |
16813 | 16813 | | |
16814 | 16814 | | |
16815 | | - | |
| 16815 | + | |
16816 | 16816 | | |
16817 | 16817 | | |
16818 | | - | |
16819 | 16818 | | |
16820 | 16819 | | |
16821 | 16820 | | |
| |||
16876 | 16875 | | |
16877 | 16876 | | |
16878 | 16877 | | |
| 16878 | + | |
| 16879 | + | |
| 16880 | + | |
| 16881 | + | |
16879 | 16882 | | |
16880 | 16883 | | |
16881 | 16884 | | |
| |||
17011 | 17014 | | |
17012 | 17015 | | |
17013 | 17016 | | |
17014 | | - | |
| 17017 | + | |
| 17018 | + | |
| 17019 | + | |
| 17020 | + | |
| 17021 | + | |
| 17022 | + | |
| 17023 | + | |
| 17024 | + | |
| 17025 | + | |
| 17026 | + | |
| 17027 | + | |
| 17028 | + | |
| 17029 | + | |
| 17030 | + | |
| 17031 | + | |
| 17032 | + | |
| 17033 | + | |
17015 | 17034 | | |
17016 | 17035 | | |
17017 | 17036 | | |
17018 | 17037 | | |
| 17038 | + | |
| 17039 | + | |
| 17040 | + | |
17019 | 17041 | | |
17020 | 17042 | | |
17021 | 17043 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3059 | 3059 | | |
3060 | 3060 | | |
3061 | 3061 | | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
3062 | 3066 | | |
3063 | 3067 | | |
3064 | 3068 | | |
| |||
Lines changed: 354 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 350 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7095 additions & 0 deletions
Large diffs are not rendered by default.
0 commit comments