commit | bc61315377056fe362b744d9c44e17cd3178ce54 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Aug 22 16:50:42 2017 +0200 |
committer | GitHub <noreply@github.com> | Tue Aug 22 16:50:42 2017 +0200 |
tree | 5bb9c1fd7e8e92230aa0f328665c45a052c43967 | |
parent | 5fe59f8e3a0a56a155c18f9d581205ec533764b6 [diff] |
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()