Go

golang:master

Last commit made on 2022-04-11
Get this branch:
git clone -b master https://git.launchpad.net/golang

Branch merges

Branch information

Name:
master
Repository:
lp:golang

Recent commits

a6f6932... by Keith Randall <email address hidden>

cmd/asm: fix MOVK when constant has high bit set

Fixes #52261

Change-Id: I1dc4c19c95a91f9e1e99d1e74afeb69f5bf8a979
Reviewed-on: https://go-review.googlesource.com/c/go/+/399455
Trust: Keith Randall <email address hidden>
Run-TryBot: Keith Randall <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>
Auto-Submit: Keith Randall <email address hidden>
Reviewed-by: Eric Fang <email address hidden>

b6fb3af... by Meng Zhuo <email address hidden>

archive/zip: fail fast if UncompressedSize64 < nread

The zip reader checks that the uncompressed file size is valid
after all compressed files read until EOF.
However in between reading each file, there could have already
been an overflow where nread > UncompressedSize64 hence this
change will now return ErrFormat in such situations.

Fixes #49791

Change-Id: If3584a57d173de6a97bf35c07d2a99ff6972f820
Reviewed-on: https://go-review.googlesource.com/c/go/+/366854
Trust: mzh <email address hidden>
Run-TryBot: Ian Lance Taylor <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>
Reviewed-by: Emmanuel Odeke <email address hidden>
Trust: Emmanuel Odeke <email address hidden>

a10f158... by Leonard Wang <email address hidden>

runtime: update description of GODEBUG=gctrace=1

For #44167.

Change-Id: I2dcd13cbe74e88de00e9fc51f9bd86e604a167df
Reviewed-on: https://go-review.googlesource.com/c/go/+/399300
Reviewed-by: Michael Knyszek <email address hidden>
Reviewed-by: Emmanuel Odeke <email address hidden>
Run-TryBot: Emmanuel Odeke <email address hidden>
Auto-Submit: Emmanuel Odeke <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>

8cd6aac... by cia-rana <email address hidden>

runtime: fix URL in a comment

For various reasons Intel has suspended viewing web pages in the .ru
domain, so change the domain of the documents cited in the code
to the .com domain. In addition, the chapter numbers in the document
were updated and fix it.

Change-Id: I718be1548ec46f05ebc4f73873d4635c1d5fc76d
Reviewed-on: https://go-review.googlesource.com/c/go/+/399060
Reviewed-by: Ian Lance Taylor <email address hidden>
Run-TryBot: Ian Lance Taylor <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>
Reviewed-by: Emmanuel Odeke <email address hidden>
Auto-Submit: Emmanuel Odeke <email address hidden>

db7183c... by Ian Lance Taylor <email address hidden>

go/build: remove unused fileInfo.embedErr field

Change-Id: If86a0402dae32c57d07545ee6d818010e0e4b5ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/399255
Trust: Ian Lance Taylor <email address hidden>
Run-TryBot: Ian Lance Taylor <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>
Reviewed-by: Dmitri Shuralyov <email address hidden>

0f0c892... by "Paul E. Murphy" <email address hidden>

crypto/aes: merge ppc64le crypt key expansion

It is not necessary to expand the key twice for each direction,
the decrypt key can be stored in reverse simultaneously.

Likewise, there is no need to store the key length alongside the
expanded keys, this is now inferred by the key length slice.
Noteably, the key expansion benchmark assumes the key array size
is the exact size of the expanded key.

Now, the ppc64le aes asm interface is identical to the generic
asm interface. Callsites and usage is updated to reflect this.

Performance uplift on POWER9 is substantial:

name old time/op new time/op delta
Expand 167ns ± 0% 49ns ± 0% -70.55%

Change-Id: I3fdaf9c27e8860e8150d4683eb4046d97a53293a
Reviewed-on: https://go-review.googlesource.com/c/go/+/398894
Run-TryBot: Paul Murphy <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>
Reviewed-by: Lynn Boger <email address hidden>
Trust: Paul Murphy <email address hidden>

db576c9... by Johan Jansson <email address hidden>

net/textproto: initialize commonHeader in canonicalMIMEHeaderKey

Call initCommonHeader in canonicalMIMEHeaderKey to ensure that
commonHeader is initialized before use. Remove all other calls to
initCommonHeader, since commonHeader is only used in
canonicalMIMEHeaderKey.

This prevents a race condition: read of commonHeader before
commonHeader has been initialized.

Add regression test that triggers the race condition which can be
detected by the race detector.

Fixes #46363

Change-Id: I00c8c52c6f4c78c0305978c876142c1b388174af
Reviewed-on: https://go-review.googlesource.com/c/go/+/397575
Trust: Brad Fitzpatrick <email address hidden>
Reviewed-by: Bryan Mills <email address hidden>
Trust: Bryan Mills <email address hidden>
Run-TryBot: Bryan Mills <email address hidden>
Auto-Submit: Bryan Mills <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>

3a19102... by "Bryan C. Mills" <email address hidden>

cmd/vendor: revert vendored code mistakenly modified in CL 398734

CL 398734 mistakenly modified
cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/tables.go, which causes
the cmd/internal/moddeps to (correctly) fail due to modified vendored
code. This reverts the edit by re-running 'go mod vendor'.

Fixes #52231.

Change-Id: I1def3efe5d408464561e775feb0f9d34ff5fd0b3
Reviewed-on: https://go-review.googlesource.com/c/go/+/399154
Trust: Bryan Mills <email address hidden>
Run-TryBot: Bryan Mills <email address hidden>
Auto-Submit: Bryan Mills <email address hidden>
Reviewed-by: Heschi Kreinick <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>

3e38752... by qmuntal <email address hidden>

cmd/go: cgo export header to be compatible with MSVC complex types

After CL 379474 has landed, the only remaining cgo export header
incompatibility with MSVC is the use of the _Complex macro,
which is not supported in MSVC even when it is part of the ISO C99
standard (1).

Since MSVC 2015 (2), complex math are supported via _Fcomplex and
_Dcomplex, which are equivalent to float _Complex and double _Complex.

As MSVC and C complex types have the same memory layout, we should
be able to typedef GoComplex64 and GoComplex128 to the appropriate
type in MSVC.

It is important to note that this CL is not adding MSVC support to cgo.
C compilers should still be GCC-compatible.

This CL is about allowing to include, without further modifications,
a DLL export header generated by cgo, normally using Mingw-W64 compiler,
into a MSVC project. This was already possible if the export header
changes introduced in this CL were done outside cgo, either manually or
in a post-build script.

Fixes #36233

1: https://docs.microsoft.com/en-us/cpp/c-runtime-library/complex-math-support
2: https://docs.microsoft.com/en-us/cpp/overview/visual-cpp-language-conformance?c-standard-library-features-1
Change-Id: Iad8f26984b115c728e3b73f3a8334ade7a11cfa1
Reviewed-on: https://go-review.googlesource.com/c/go/+/397134
Reviewed-by: Ian Lance Taylor <email address hidden>
Trust: Cherry Mui <email address hidden>
Run-TryBot: Cherry Mui <email address hidden>
Auto-Submit: Cherry Mui <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>

3e7ffb8... by =?utf-8?q?Daniel_Mart=C3=AD?= <email address hidden>

all: consistently use US spelling of present participles

It has been agreed that we should prefer the US spelling of words like
"canceling" over "cancelling"; for example, see https://go.dev/cl/14526.

Fix a few occurrences of the "canceling" inconsistency, as well as:

* signaling
* tunneling
* marshaling

Change-Id: I99f3ba0a700a9f0292bc6c1b110af31dd05f1ff0
Reviewed-on: https://go-review.googlesource.com/c/go/+/398734
Trust: Daniel Martí <email address hidden>
Run-TryBot: Daniel Martí <email address hidden>
TryBot-Result: Gopher Robot <email address hidden>
Reviewed-by: Ian Lance Taylor <email address hidden>