Repository navigation
Commit 65fddf9
authored
Avoid locking across ctypes errcheck callbacks (#9611)
* Avoid locking across ctypes errcheck callbacks
Snapshot the errcheck callable before invoking Python, and release the setter lock before destroying the old callable. Both callbacks and finalizers can replace errcheck reentrantly.
Assisted-by: OpenAI Codex:model version not exposed
* Preserve existing source comment after lock refactor
Assisted-by: OpenAI Codex:model version unavailable
* Use core for errcheck value replacement
Assisted-by: OpenAI Codex:model version unavailable1 parent 715af53 commit 65fddf9
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1710 | 1710 | | |
1711 | 1711 | | |
1712 | 1712 | | |
1713 | | - | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
1714 | 1716 | | |
1715 | 1717 | | |
1716 | 1718 | | |
| |||
1907 | 1909 | | |
1908 | 1910 | | |
1909 | 1911 | | |
1910 | | - | |
1911 | | - | |
| 1912 | + | |
| 1913 | + | |
1912 | 1914 | | |
1913 | | - | |
| 1915 | + | |
1914 | 1916 | | |
1915 | 1917 | | |
1916 | | - | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
1917 | 1922 | | |
1918 | 1923 | | |
1919 | 1924 | | |
| |||
0 commit comments