Limit download_dart_sdk task pool size on Windows (#28623)
The multiprocessing package relies on the win32 `WaitForMultipleObjects` call, which supports waiting on a maximum of MAXIMUM_WAIT_OBJECTS (defined by Windows to be 64) handles, processes in this case. To avoid hitting this, we limit ourselves to 60 handles (since there are a couple extra processes launched for the queue reader and thread wakeup reader). When left unspecified, the multiprocessing module defaults this value to os.cpu_count(), so this error is triggered only on machines with > 60 cores. See: https://bugs.python.org/issue2690 Bug: https://github.com/flutter/flutter/issues/90085
Showing
想要评论请 注册 或 登录