]> Cypherpunks repositories - gostls13.git/commit
os/exec: create extra threads when starting a subprocess
authorIan Lance Taylor <iant@golang.org>
Mon, 13 Apr 2020 22:04:20 +0000 (15:04 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 14 Apr 2020 22:35:19 +0000 (22:35 +0000)
commit75f499e3a0e8830efb861c9ba6ca61bc03583962
tree264a1cd5bdefbaad88afdf51744d65aab41cba86
parenta55645fa3481413b335561924d8fa626ce440ad4
os/exec: create extra threads when starting a subprocess

TestExtraFiles seems to be flaky on GNU/Linux systems when using cgo
because creating a new thread will call malloc which can create a new
arena which can open a file to see how many processors there are.
Try to avoid the flake by creating several new threads at process
startup time.

For #25628

Change-Id: Ie781acdbba475d993c39782fe172cf7f29a05b24
Reviewed-on: https://go-review.googlesource.com/c/go/+/228099
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/os/exec/exec_linux_test.go [new file with mode: 0644]