summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-08-22 14:50:42 (GMT)
committerGitHub <noreply@github.com>2017-08-22 14:50:42 (GMT)
commitbc61315377056fe362b744d9c44e17cd3178ce54 (patch)
tree5bb9c1fd7e8e92230aa0f328665c45a052c43967 /Misc
parent5fe59f8e3a0a56a155c18f9d581205ec533764b6 (diff)
downloadcpython-bc61315377056fe362b744d9c44e17cd3178ce54.zip
cpython-bc61315377056fe362b744d9c44e17cd3178ce54.tar.gz
cpython-bc61315377056fe362b744d9c44e17cd3178ce54.tar.bz2
bpo-31249: Fix ref cycle in ThreadPoolExecutor (#3178)
* bpo-31249: Fix ref cycle in ThreadPoolExecutor concurrent.futures: WorkItem.run() used by ThreadPoolExecutor now breaks a reference cycle between an exception object and the WorkItem object. ThreadPoolExecutor.shutdown() now also clears its threads set. * shutdown() now only clears threads if wait is true. * Revert changes on shutdown()
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2017-08-22-12-44-48.bpo-31249.STPbb9.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-08-22-12-44-48.bpo-31249.STPbb9.rst b/Misc/NEWS.d/next/Library/2017-08-22-12-44-48.bpo-31249.STPbb9.rst
new file mode 100644
index 0000000..f11a668
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-08-22-12-44-48.bpo-31249.STPbb9.rst
@@ -0,0 +1,2 @@
+concurrent.futures: WorkItem.run() used by ThreadPoolExecutor now breaks a
+reference cycle between an exception object and the WorkItem object.