SIGN IN SIGN UP

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()
V
Victor Stinner committed
bc61315377056fe362b744d9c44e17cd3178ce54
Parent: 5fe59f8
Committed by GitHub <noreply@github.com> on 8/22/2017, 2:50:42 PM