Commit 9a5bd48
committed
gh-145685: Stop the world when updating MRO of existing types
We already have a stop-the-world pause elsewhere in this code path
(type_set_bases) and this makes will make it easier to avoid contention
on the TYPE_LOCK when looking up names in the MRO hierarchy.
Also use deferred reference counting for non-immortal MROs.1 parent 1564e23 commit 9a5bd48
1 file changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
651 | 650 | | |
652 | 651 | | |
653 | 652 | | |
| |||
664 | 663 | | |
665 | 664 | | |
666 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
667 | 673 | | |
668 | 674 | | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
669 | 679 | | |
670 | 680 | | |
671 | 681 | | |
| |||
1728 | 1738 | | |
1729 | 1739 | | |
1730 | 1740 | | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
| 1741 | + | |
1735 | 1742 | | |
1736 | | - | |
1737 | | - | |
1738 | | - | |
| 1743 | + | |
1739 | 1744 | | |
1740 | | - | |
1741 | | - | |
1742 | | - | |
| 1745 | + | |
1743 | 1746 | | |
1744 | 1747 | | |
1745 | 1748 | | |
| |||
0 commit comments