Repository navigation
Commit 2f49e09
committed
Fix _tracemalloc start/stop
Issue python#26588: Fix _tracemalloc start/stop: don't play with the reentrant flag.
set_reentrant(1) fails with an assertion error if tracemalloc_init() is called
first in a thread A and tracemalloc_start() is called second in a thread B. The
tracemalloc is imported in a thread A. Importing the module calls
tracemalloc_init(). tracemalloc.start() is called in a thread B.1 parent d6990d2 commit 2f49e09
1 file changed
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
740 | 740 | | |
741 | 741 | | |
742 | 742 | | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | 743 | | |
748 | 744 | | |
749 | 745 | | |
| |||
823 | 819 | | |
824 | 820 | | |
825 | 821 | | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | 822 | | |
832 | 823 | | |
833 | 824 | | |
| |||
912 | 903 | | |
913 | 904 | | |
914 | 905 | | |
915 | | - | |
916 | 906 | | |
917 | 907 | | |
918 | 908 | | |
| |||
926 | 916 | | |
927 | 917 | | |
928 | 918 | | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | 919 | | |
934 | 920 | | |
935 | 921 | | |
| |||
0 commit comments