Commit 078b8c8
authored
Release the GIL before calling `_Py_qsbr_unregister`.
The deadlock could occur when the GIL was enabled at runtime. The
`_Py_qsbr_unregister` call might block while holding the GIL because the
thread state was not active, but the GIL was still held.
1 parent 64ff1e2 commit 078b8c8
File tree
3 files changed
+19
-9
lines changed- Misc/NEWS.d/next/Core and Builtins
- Python
3 files changed
+19
-9
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1751 | 1751 | | |
1752 | 1752 | | |
1753 | 1753 | | |
1754 | | - | |
| 1754 | + | |
1755 | 1755 | | |
1756 | 1756 | | |
1757 | 1757 | | |
| |||
1793 | 1793 | | |
1794 | 1794 | | |
1795 | 1795 | | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | 1796 | | |
1801 | 1797 | | |
1802 | 1798 | | |
| |||
1807 | 1803 | | |
1808 | 1804 | | |
1809 | 1805 | | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
1810 | 1814 | | |
1811 | 1815 | | |
1812 | 1816 | | |
| |||
1818 | 1822 | | |
1819 | 1823 | | |
1820 | 1824 | | |
1821 | | - | |
| 1825 | + | |
1822 | 1826 | | |
1823 | 1827 | | |
1824 | 1828 | | |
| |||
1829 | 1833 | | |
1830 | 1834 | | |
1831 | 1835 | | |
1832 | | - | |
| 1836 | + | |
1833 | 1837 | | |
1834 | 1838 | | |
1835 | 1839 | | |
| |||
1842 | 1846 | | |
1843 | 1847 | | |
1844 | 1848 | | |
1845 | | - | |
1846 | | - | |
| 1849 | + | |
1847 | 1850 | | |
1848 | 1851 | | |
1849 | 1852 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
239 | 244 | | |
240 | 245 | | |
241 | 246 | | |
| |||
0 commit comments