Commit da53660
authored
pythongh-131586: Avoid refcount contention in context managers (pythongh-131851)
This avoid reference count contention in the free threading build
when calling special methods like `__enter__` and `__exit__`.1 parent 8dfa840 commit da53660
11 files changed
Lines changed: 244 additions & 204 deletions
File tree
- Include/internal
- Objects
- Python
- Tools/ftscalingbench
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2794 | 2794 | | |
2795 | 2795 | | |
2796 | 2796 | | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
2800 | 2804 | | |
2801 | | - | |
2802 | | - | |
2803 | | - | |
2804 | | - | |
2805 | | - | |
2806 | | - | |
2807 | | - | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
2808 | 2810 | | |
2809 | 2811 | | |
2810 | | - | |
| 2812 | + | |
2811 | 2813 | | |
2812 | | - | |
| 2814 | + | |
2813 | 2815 | | |
2814 | | - | |
2815 | | - | |
2816 | | - | |
2817 | | - | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
2818 | 2822 | | |
2819 | | - | |
2820 | | - | |
| 2823 | + | |
| 2824 | + | |
2821 | 2825 | | |
2822 | | - | |
| 2826 | + | |
| 2827 | + | |
2823 | 2828 | | |
2824 | 2829 | | |
2825 | 2830 | | |
| |||
0 commit comments