Skip to content

[pull] master from golang:master#16

Merged
pull[bot] merged 5 commits intotrailofbits:masterfrom
golang:master
May 6, 2026
Merged

[pull] master from golang:master#16
pull[bot] merged 5 commits intotrailofbits:masterfrom
golang:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 6, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

dsnet and others added 5 commits May 5, 2026 11:56
WARNING: This commit contains breaking changes.

The `format` tag option is no longer supported by default.
Similarly, the ability to use a single-quoted string for field names
or for the `format` tag value is no longer supported by default.
To enable both features, specify GOEXPERIMENT=jsonformat.

Fixes #79071

Change-Id: I2cfdbd89dc84639e7423bee0e867d965d92a267b
Reviewed-on: https://go-review.googlesource.com/c/go/+/773980
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
This brings in CL 773940, which should reduce flakes for HTTP/3 tests.

For #79104
For #78737

Change-Id: I4875570b3a615faba0ea686a71621d4c6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/774500
Reviewed-by: Nicholas Husin <husin@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
…ak profile

The main goroutine is no longer included
in the goroutine leak profile if blocked
at select without cases.
The main goroutine is still treated as a
leak during the analysis to avoid degrading
analysis precision (see test), but has its status changed
from leaked back to waiting before the profile is written.

Based on feedback in #74609 (comment)

Change-Id: I0fa2a93227006d99c2872c503a1eb67ad606a034
GitHub-Last-Rev: 84458d2
GitHub-Pull-Request: #78922
Reviewed-on: https://go-review.googlesource.com/c/go/+/770020
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Keith Randall <khr@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
ScoreInductionInc was introduced in 19f0577.
The goal was to keep the i++ in-place in a register.

Placing ScoreInductionInc later than ScoreFlags further improves
the generated code, mainly for code involving carry chains.

For example, the math/big.addVW_ref inner loop was:

    LEAQ    1(CX), R8
    ADDQ    DX, R9
    MOVQ    R9, (AX)(CX*8)
    SBBQ    R9, R9
    NEGQ    R9
    MOVQ    R8, CX

After this commit:

    ADDQ    DX, R9
    MOVQ    R9, (AX)(CX*8)
    SBBQ    R9, R9
    NEGQ    R9
    INCQ    CX

This is almost uniformly an improvement, across GOARCHes.
There are a few functions where this perturbs regalloc and causes
a little bit of movement, but they are rare and appear to be the
usual uninteresting regalloc change noise.

Change-Id: I883a92e4511136f478cf49471ba8b628434393dc
Reviewed-on: https://go-review.googlesource.com/c/go/+/773660
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
CL 771782 introduced an extra index verification when reading in
suffixarray indices. However, instead of testing against the overall
suffixarray length, the condition checked against the (current) slice
length which may be smaller than the indexarray length.
This resulted in an error being reported when benchmarking a larger
suffixarray that recorded its data using multiple data slices.
The benchmark itself was not expecting an error and instead responded
with a panic.

Fix the condition by testing against the correct length.
Also, adjust the testSaveRestore signature so we can pass in non-nil
values so that the benchmark reports an error rather than panicking
(before the bug fix).

Fixes #79207.

Change-Id: I523944ab1b133641e045a35435af6b6e2feed05d
Reviewed-on: https://go-review.googlesource.com/c/go/+/774482
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Keith Randall <khr@google.com>
@pull pull Bot locked and limited conversation to collaborators May 6, 2026
@pull pull Bot added the ⤵️ pull label May 6, 2026
@pull pull Bot merged commit a882c08 into trailofbits:master May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants