]> granicus.if.org Git - python/commit
bpo-35715: Liberate return value of _process_worker (GH-11514)
authorDave Chevell <chevell@gmail.com>
Sat, 16 Mar 2019 22:28:51 +0000 (09:28 +1100)
committerPablo Galindo <Pablogsal@gmail.com>
Sat, 16 Mar 2019 22:28:51 +0000 (22:28 +0000)
commit962bdeab191ee64459caa199209331005797ea7a
treead6c608742bcb8e5415b3a53f3e1fa6097abff59
parent9c68543f022b130ff51944edc6771c60510ee683
bpo-35715: Liberate return value of _process_worker (GH-11514)

ProcessPoolExecutor workers will hold the return value of their last task in memory until the next task is received. Since the return value has already been propagated to the parent process's Future (or has been discarded by this point), the object can be safely released.
Lib/concurrent/futures/process.py
Misc/NEWS.d/next/Library/2019-01-11-08-47-58.bpo-35715.Wi3gl0.rst [new file with mode: 0644]