Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Commit02cd3ce
*gh-116510: Fix a Crash Due to Shared Immortal Interned Strings (gh-124865)Fix a crash caused by immortal interned strings being shared betweensub-interpreters that use basic single-phase init. In that case, the stringcan be used by an interpreter that outlives the interpreter that created andinterned it. For interpreters that share obmalloc state, also share theinterned dict with the main interpreter.This is an un-revert ofgh-124646 that then addresses the Py_TRACE_REFSfailures identified bygh-124785.(cherry picked from commitf2cb399)Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>* [3.13]gh-125286: Share the Main Refchain With Legacy Interpreters (gh-125709)They used to be shared, before 3.12. Returning to sharing them resolves a failure on Py_TRACE_REFS builds.---------Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
1 parent4f1440f commit02cd3ce
File tree
8 files changed
+148
-23
lines changed- Doc
- library
- using
- whatsnew
- Misc/NEWS.d/next/Core_and_Builtins
- Objects
- Python
8 files changed
+148
-23
lines changedLines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
920 | 920 |
| |
921 | 921 |
| |
922 | 922 |
| |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
923 | 952 |
| |
924 | 953 |
| |
925 | 954 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
721 | 721 |
| |
722 | 722 |
| |
723 | 723 |
| |
724 |
| - | |
| 724 | + | |
725 | 725 |
| |
726 | 726 |
| |
727 | 727 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2706 | 2706 |
| |
2707 | 2707 |
| |
2708 | 2708 |
| |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + |
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + |
Lines changed: 44 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
169 | 169 |
| |
170 | 170 |
| |
171 | 171 |
| |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
172 | 214 |
| |
173 | 215 |
| |
174 | 216 |
| |
| |||
2171 | 2213 |
| |
2172 | 2214 |
| |
2173 | 2215 |
| |
2174 |
| - | |
2175 |
| - | |
2176 |
| - | |
2177 |
| - | |
2178 |
| - | |
2179 |
| - | |
2180 |
| - | |
2181 |
| - | |
2182 |
| - | |
2183 |
| - | |
| 2216 | + | |
2184 | 2217 |
| |
2185 | 2218 |
| |
2186 | 2219 |
| |
| |||
2191 | 2224 |
| |
2192 | 2225 |
| |
2193 | 2226 |
| |
2194 |
| - | |
2195 |
| - | |
| 2227 | + | |
2196 | 2228 |
| |
2197 | 2229 |
| |
2198 | 2230 |
| |
|
Lines changed: 42 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
277 | 277 |
| |
278 | 278 |
| |
279 | 279 |
| |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
280 | 297 |
| |
281 | 298 |
| |
282 | 299 |
| |
283 | 300 |
| |
284 |
| - | |
285 |
| - | |
286 |
| - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
287 | 311 |
| |
288 | 312 |
| |
289 | 313 |
| |
| |||
294 | 318 |
| |
295 | 319 |
| |
296 | 320 |
| |
297 |
| - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
298 | 325 |
| |
299 | 326 |
| |
300 | 327 |
| |
| |||
15306 | 15333 |
| |
15307 | 15334 |
| |
15308 | 15335 |
| |
| 15336 | + | |
| 15337 | + | |
| 15338 | + | |
| 15339 | + | |
| 15340 | + | |
| 15341 | + | |
| 15342 | + | |
15309 | 15343 |
| |
15310 | 15344 |
| |
15311 | 15345 |
| |
| |||
15827 | 15861 |
| |
15828 | 15862 |
| |
15829 | 15863 |
| |
15830 |
| - | |
15831 |
| - | |
| 15864 | + | |
| 15865 | + | |
| 15866 | + | |
| 15867 | + | |
15832 | 15868 |
| |
15833 | 15869 |
| |
15834 | 15870 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
670 | 670 |
| |
671 | 671 |
| |
672 | 672 |
| |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
673 | 680 |
| |
674 | 681 |
| |
675 | 682 |
| |
| |||
2290 | 2297 |
| |
2291 | 2298 |
| |
2292 | 2299 |
| |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
2293 | 2307 |
| |
2294 | 2308 |
| |
2295 | 2309 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
632 | 632 |
| |
633 | 633 |
| |
634 | 634 |
| |
635 |
| - | |
636 |
| - | |
637 |
| - | |
638 |
| - | |
| 635 | + | |
| 636 | + | |
639 | 637 |
| |
640 | 638 |
| |
641 | 639 |
| |
|
0 commit comments
Comments
(0)