{{ message }}
Commit ad52437
committed
Fail if PyMem_Malloc() is called without holding the GIL
Issue python#26563: Debug hooks on Python memory allocators now raise a fatal error
if functions of the PyMem_Malloc() family are called without holding the GIL.1 parent 013024e commit ad52437
4 files changed
Lines changed: 43 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3643 | 3643 | | |
3644 | 3644 | | |
3645 | 3645 | | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
| 3655 | + | |
| 3656 | + | |
| 3657 | + | |
| 3658 | + | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
3646 | 3662 | | |
3647 | 3663 | | |
3648 | 3664 | | |
3649 | 3665 | | |
3650 | 3666 | | |
| 3667 | + | |
| 3668 | + | |
3651 | 3669 | | |
3652 | 3670 | | |
3653 | 3671 | | |
| |||
3841 | 3859 | | |
3842 | 3860 | | |
3843 | 3861 | | |
| 3862 | + | |
3844 | 3863 | | |
3845 | 3864 | | |
3846 | 3865 | | |
| |||

0 commit comments