Repository navigation
Commit b30b25b
authored
When a Thread is not joined after it has stopped, its lock may remain in the _shutdown_locks set until interpreter shutdown. If many threads are created this way, the _shutdown_locks set could therefore grow endlessly. To avoid such a situation, purge expired locks each time a new one is added or removed..
(cherry picked from commit c10c2ec)
Co-authored-by: Antoine Pitrou <[email protected]>
Automerge-Triggered-By: GH:pitrou
1 parent fa9de0c commit b30b25b
3 files changed
Lines changed: 27 additions & 1 deletion
File tree
- Lib
- test
- Misc/NEWS.d/next/Library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
808 | 816 | | |
809 | 817 | | |
810 | 818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| 758 | + | |
758 | 759 | | |
759 | 760 | | |
760 | 761 | | |
761 | 762 | | |
762 | 763 | | |
763 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
764 | 779 | | |
765 | 780 | | |
766 | 781 | | |
| |||
932 | 947 | | |
933 | 948 | | |
934 | 949 | | |
| 950 | + | |
935 | 951 | | |
936 | 952 | | |
937 | 953 | | |
| |||
987 | 1003 | | |
988 | 1004 | | |
989 | 1005 | | |
990 | | - | |
| 1006 | + | |
| 1007 | + | |
991 | 1008 | | |
992 | 1009 | | |
993 | 1010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments