Commit f2cb399
authored
Fix a crash caused by immortal interned strings being shared between
sub-interpreters that use basic single-phase init. In that case, the string
can be used by an interpreter that outlives the interpreter that created and
interned it. For interpreters that share obmalloc state, also share the
interned dict with the main interpreter.
This is an un-revert of gh-124646 that then addresses the Py_TRACE_REFS
failures identified by gh-124785.
1 parent d501153 commit f2cb399
File tree
3 files changed
+91
-6
lines changed- Misc/NEWS.d/next/Core_and_Builtins
- Objects
3 files changed
+91
-6
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2491 | 2491 | | |
2492 | 2492 | | |
2493 | 2493 | | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
2494 | 2530 | | |
2495 | 2531 | | |
2496 | 2532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
284 | 301 | | |
285 | 302 | | |
286 | 303 | | |
287 | 304 | | |
288 | | - | |
289 | | - | |
290 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
291 | 315 | | |
292 | 316 | | |
293 | 317 | | |
| |||
298 | 322 | | |
299 | 323 | | |
300 | 324 | | |
301 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
302 | 329 | | |
303 | 330 | | |
304 | 331 | | |
| |||
15401 | 15428 | | |
15402 | 15429 | | |
15403 | 15430 | | |
| 15431 | + | |
| 15432 | + | |
| 15433 | + | |
| 15434 | + | |
15404 | 15435 | | |
15405 | 15436 | | |
15406 | 15437 | | |
| |||
15416 | 15447 | | |
15417 | 15448 | | |
15418 | 15449 | | |
| 15450 | + | |
| 15451 | + | |
| 15452 | + | |
| 15453 | + | |
15419 | 15454 | | |
15420 | 15455 | | |
15421 | 15456 | | |
| |||
15609 | 15644 | | |
15610 | 15645 | | |
15611 | 15646 | | |
| 15647 | + | |
| 15648 | + | |
| 15649 | + | |
| 15650 | + | |
| 15651 | + | |
| 15652 | + | |
| 15653 | + | |
15612 | 15654 | | |
15613 | 15655 | | |
15614 | 15656 | | |
| |||
16117 | 16159 | | |
16118 | 16160 | | |
16119 | 16161 | | |
16120 | | - | |
16121 | | - | |
| 16162 | + | |
| 16163 | + | |
| 16164 | + | |
| 16165 | + | |
16122 | 16166 | | |
16123 | 16167 | | |
16124 | 16168 | | |
| |||
0 commit comments