Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.1k
Commitbc61315
authored
*bpo-31249: Fix ref cycle in ThreadPoolExecutorconcurrent.futures: WorkItem.run() used by ThreadPoolExecutor nowbreaks a reference cycle between an exception object and the WorkItemobject. ThreadPoolExecutor.shutdown() now also clears its threadsset.* shutdown() now only clears threads if wait is true.* Revert changes on shutdown()
1 parent5fe59f8 commitbc61315
File tree
2 files changed
+6
-2
lines changed- Lib/concurrent/futures
- Misc/NEWS.d/next/Library
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments
Comments
(0)