Repository navigation
Commit 167dab3
committed
Fix CI: repair critical-section scoping in PyException_SetContext (gh-69968)
Py_END_CRITICAL_SECTION() emits a closing brace, so calling it inside the
nested if/while early-return path closed the wrong block and left
'base_self' undeclared after the loop. Restructure to a single exit:
record the cycle with a flag, then release the lock before Py_DECREF.
Also add the missing news entry.
Co-authored-by: Muse Code (Meta Muse Spark)1 parent 5d32953 commit 167dab3
2 files changed
Lines changed: 18 additions & 5 deletions
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Objects
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| 557 | + | |
| 558 | + | |
557 | 559 | | |
558 | 560 | | |
559 | 561 | | |
| |||
568 | 570 | | |
569 | 571 | | |
570 | 572 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
| 573 | + | |
| 574 | + | |
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
582 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
583 | 593 | | |
584 | 594 | | |
585 | 595 | | |
| |||
0 commit comments