From: Ian Lance Taylor Date: Thu, 26 Dec 2019 23:57:13 +0000 (-0800) Subject: doc/go1.14: mention increased number of EINTR errors X-Git-Tag: go1.14rc1~205 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2d6f8cc2cdd5993eb8dc80655735a38ef067af6e;p=gostls13.git doc/go1.14: mention increased number of EINTR errors Updates #36281 Change-Id: I3c4487caaf47566212dc62322b2e884e695ea7f1 Reviewed-on: https://go-review.googlesource.com/c/go/+/212657 Reviewed-by: Brad Fitzpatrick --- diff --git a/doc/go1.14.html b/doc/go1.14.html index 482dcf2e68..9c45c77129 100644 --- a/doc/go1.14.html +++ b/doc/go1.14.html @@ -258,6 +258,23 @@ TODO plan9/*.

+

+ A consequence of the implementation of preemption is that on Unix + systems, including Linux and macOS systems, programs built with Go + 1.14 will receive more signals than programs built with earlier + releases. + This means that programs that use packages + like syscall + or golang.org/x/sys/unix + will see more slow system calls fail with EINTR errors. + Those programs will have to handle those errors in some way, most + likely looping to try the system call again. For more + information about this + see man + 7 signal for Linux systems or similar documentation for + other systems. +

+

The page allocator is more efficient and incurs significantly less lock contention at high values of GOMAXPROCS.