diff options
| author | Joel Sing <joel@sing.id.au> | 2019-05-07 17:56:49 +1000 |
|---|---|---|
| committer | Joel Sing <joel@sing.id.au> | 2019-05-15 18:12:10 +0000 |
| commit | ab242dcbc92803788b135816823536c4007137e3 (patch) | |
| tree | e50ecb886fcadf648adf4777a69a2785f9ac5481 /src/errors/errors.go | |
| parent | 38431f1044880b936e35034ded19a6a8bc9faa21 (diff) | |
| download | go-ab242dcbc92803788b135816823536c4007137e3.tar.xz | |
syscall: implement rawVforkSyscall for linux/ppc64x and linux/s390x
This allows the use of CLONE_VFORK and CLONE_VM for fork/exec, preventing
"fork/exec ...: cannot allocate memory" failures from occuring when attempting
to execute commands from a Go process that has a large memory footprint.
Additionally, this should reduce the latency of fork/exec on these platforms.
The same problem was addressed on linux/amd64 via issue #5838.
Updates #31936
Change-Id: I7ae0fbbeaa29cab944a49a11272a380d497eb2d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/175697
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/errors/errors.go')
0 files changed, 0 insertions, 0 deletions
