Commit 86be3b7
variable.c: handle cleared fields_obj in genfields cache
[Bug #21547]
Followup: ruby#14201
When adding an instance variable and the IMEMO/fields need to be
larger, we allocate a new one and clear the old one.
Since the old one may still be in other ec's cache, on a hit we must
check the IMEMO/fields isn't a stale one.1 parent a837ec0 commit 86be3b7
4 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6306 | 6306 | | |
6307 | 6307 | | |
6308 | 6308 | | |
| 6309 | + | |
6309 | 6310 | | |
6310 | 6311 | | |
6311 | 6312 | | |
| |||
7159 | 7160 | | |
7160 | 7161 | | |
7161 | 7162 | | |
7162 | | - | |
7163 | 7163 | | |
7164 | 7164 | | |
7165 | 7165 | | |
| |||
11676 | 11676 | | |
11677 | 11677 | | |
11678 | 11678 | | |
11679 | | - | |
11680 | 11679 | | |
11681 | 11680 | | |
11682 | 11681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| 212 | + | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
450 | 463 | | |
451 | 464 | | |
452 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
1250 | | - | |
| 1250 | + | |
1251 | 1251 | | |
1252 | 1252 | | |
1253 | 1253 | | |
| |||
0 commit comments