From 2d6f8cc2cdd5993eb8dc80655735a38ef067af6e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 26 Dec 2019 15:57:13 -0800 Subject: [PATCH] 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 --- doc/go1.14.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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. -- 2.50.0