[Python-checkins] bpo-38092: Reduce overhead when using multiprocessing in a Windows virtual environment (GH-16098)

Steve Dower webhook-mailer at python.org
Tue Jan 28 05:29:21 EST 2020


https://github.com/python/cpython/commit/6990d1b6131873c7f0913908162e4c723d00ea19
commit: 6990d1b6131873c7f0913908162e4c723d00ea19
branch: 3.7
author: Adam Meily <ameily at users.noreply.github.com>
committer: Steve Dower <steve.dower at python.org>
date: 2020-01-28T21:29:16+11:00
summary:

bpo-38092: Reduce overhead when using multiprocessing in a Windows virtual environment (GH-16098)

files:
A Misc/NEWS.d/next/Windows/2020-01-24-03-07-14.bpo-39439.rwMWDR.rst
M Lib/multiprocessing/popen_spawn_win32.py

diff --git a/Lib/multiprocessing/popen_spawn_win32.py b/Lib/multiprocessing/popen_spawn_win32.py
index e01953d32b7a4..d9442094909bd 100644
--- a/Lib/multiprocessing/popen_spawn_win32.py
+++ b/Lib/multiprocessing/popen_spawn_win32.py
@@ -69,7 +69,7 @@ def __init__(self, process_obj):
             try:
                 hp, ht, pid, tid = _winapi.CreateProcess(
                     python_exe, cmd,
-                    env, None, False, 0, None, None, None)
+                    None, None, False, 0, env, None, None)
                 _winapi.CloseHandle(ht)
             except:
                 _winapi.CloseHandle(rhandle)
diff --git a/Misc/NEWS.d/next/Windows/2020-01-24-03-07-14.bpo-39439.rwMWDR.rst b/Misc/NEWS.d/next/Windows/2020-01-24-03-07-14.bpo-39439.rwMWDR.rst
new file mode 100644
index 0000000000000..d64e63757728a
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2020-01-24-03-07-14.bpo-39439.rwMWDR.rst
@@ -0,0 +1 @@
+Reduce overhead when using multiprocessing in a Windows virtual environment
\ No newline at end of file



More information about the Python-checkins mailing list