Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: go1.22.5
Choose a base ref
...
head repository: golang/go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: go1.22.6
Choose a head ref
  • 11 commits
  • 19 files changed
  • 10 contributors

Commits on Jul 10, 2024

  1. [release-branch.go1.22] os/exec: only use cachedLookExtensions if Cmd…

    ….Path is unmodified
    
    Caching the invocation of lookExtensions on an absolute path in Command
    and reusing the cached result in Start is only viable if Cmd.Path isn't
    set to a different value after Command returns.
    
    For #66586.
    For #68314.
    Fixes #68331.
    
    Change-Id: I57007850aca2011b11344180c00faded737617b5
    Reviewed-on: https://go-review.googlesource.com/c/go/+/596875
    Reviewed-by: qiu laidongfeng2 <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    (cherry picked from commit d0146bd)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/596976
    dmitshur authored and cagedmantis committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    ea96074 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.22] cmd/go: fix build config before creating acti…

    …ons for 'go list -cover'
    
    When -covermode is set to atomic, instrumented packages need to import
    sync/atomic. If this is not already imported by a package being
    instrumented, the build needs to ensure that sync/atomic is compiled
    whenever 'go list' is run in a way that triggers package builds.
    
    The build config was already being made to ensure the import, but only
    after the action graph had been created, so there was no guarantee that
    sync/atomic would be built when needed.
    
    For #65264.
    For #68212
    Fixes #68222
    
    Change-Id: Ib3f1e102ce2ef554ea08330d9db69a8c98790ac5
    Reviewed-on: https://go-review.googlesource.com/c/go/+/560236
    Run-TryBot: Bryan Mills <[email protected]>
    Auto-Submit: Bryan Mills <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Bryan Mills <[email protected]>
    Reviewed-by: Michael Matloob <[email protected]>
    (cherry picked from commit ac08c05)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/595496
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Than McIntosh <[email protected]>
    cixel authored and cagedmantis committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    49906f9 View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.22] cmd/compile: don't elide zero extension on to…

    …p of signed values
    
    v = ... compute some value, which zeros top 32 bits ...
    w = zero-extend v
    
    We want to remove the zero-extension operation, as it doesn't do anything.
    But if v is typed as a signed value, and it gets spilled/restored, it
    might be re-sign-extended upon restore. So the zero-extend isn't actually
    a NOP when there might be calls or other reasons to spill in between v and w.
    
    Fixes #68230
    
    Change-Id: I3b30b8e56c7d70deac1fb09d2becc7395acbadf8
    Reviewed-on: https://go-review.googlesource.com/c/go/+/595675
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Joedian Reid <[email protected]>
    Reviewed-by: Cuong Manh Le <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    (cherry picked from commit 7f90b96)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/595696
    Reviewed-by: Keith Randall <[email protected]>
    randall77 authored and cagedmantis committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    45f9ded View commit details
    Browse the repository at this point in the history
  4. [release-branch.go1.22] cmd/link: don't let dsymutil delete our temp …

    …directory
    
    To work around #59026, where dsymutil may not clean up its temp
    directory at exit, we set DSYMUTIL_REPRODUCER_PATH to our temp
    directory so it uses that, and we can delete it at the end.
    
    In Xcode 16 beta, dsymutil deletes the DSYMUTIL_REPRODUCER_PATH
    directory even if it is not empty. We still need our tmpdir at the
    point, so give a subdirectory to dsymutil instead.
    
    Updates #68088.
    Fixes #68198.
    
    Change-Id: I18759cc39512819bbd0511793ce917eae72245d6
    Reviewed-on: https://go-review.googlesource.com/c/go/+/593659
    Reviewed-by: Than McIntosh <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit 5f319b7)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/596455
    cherrymui authored and cagedmantis committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    4e548f2 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. [release-branch.go1.22] go/types: fix assertion failure when range ov…

    …er int is not permitted
    
    Fixes an assertion failure in Checker.rangeStmt that range over int
    only has a key type and no value type. When allowVersion failed,
    rangeKeyVal returns Typ[Invalid] for the value instead of nil. When
    Config.Error != nil, rangeStmt proceeded. The check for rhs[1]==nil
    was not enough to catch this case. It must also check rhs[1]==
    
    Fixes #68334
    Fixes #68370
    
    Change-Id: Iffa1b2f7b6a94570ec50b8c6603e727a45ba3357
    Reviewed-on: https://go-review.googlesource.com/c/go/+/597356
    Reviewed-by: Robert Findley <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit 4e77872)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/598055
    timothy-king authored and cherrymui committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    4b27560 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. [release-branch.go1.22] internal/bytealg: extend memchr result correc…

    …tly on wasm
    
    The mem address should be regarded as uint32.
    
    Fixes #68475
    
    Change-Id: Icee38d11f2d93eeca7d50b2e133159e321daeb90
    GitHub-Last-Rev: c2568b1
    GitHub-Pull-Request: #68400
    Reviewed-on: https://go-review.googlesource.com/c/go/+/597955
    Reviewed-by: Keith Randall <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    Reviewed-by: Cuong Manh Le <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit 90c6558)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/598975
    Zxilly authored and cherrymui committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    9e148a4 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.22] cmd/internal/cov: close counter data files ea…

    …gerly
    
    When reading the counter data files from a given pod, close the
    underlying *os.File immediately after each one is read, as opposed to
    using a deferred close in the loop (which will close them all at the
    end of the function). Doing things this way avoids running into "too
    many open files" when processing large clumps of counter data files.
    
    Fixes #68492.
    Updates #68468.
    
    Change-Id: Ic1fe1d36c44d3f5d7318578cd18d0e65465d71d9
    Reviewed-on: https://go-review.googlesource.com/c/go/+/598735
    Reviewed-by: Cherry Mui <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit 3557118)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/599036
    thanm authored and cherrymui committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    4c50f91 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. [release-branch.go1.22] cmd/trace/v2: handle the -pprof flag

    Turns out we ported all the profile generation, but forgot to actually
    support the command line flags for them! This change fixes the issue by
    handling the different kinds of profiles and writing them out to stdout.
    
    For #66782
    For #68542
    For #68546
    
    Change-Id: I7756fb4636ce8daaf11ed471be79c86ce3d463cc
    Reviewed-on: https://go-review.googlesource.com/c/go/+/578318
    Reviewed-by: Carlos Amedee <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit e14aad1)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/600255
    Reviewed-by: Michael Knyszek <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    mknyszek authored and gopherbot committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    2c88c1d View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.22] cmd/trace/v2: make the -pprof actually useful

    In both the v1 and v2 cmd/trace, pprofMatchingGoroutines will generate
    no output at all if the filter name passed to it is the empty string.
    
    This is rather pointless because there are at least two places where we
    don't pass a name to filter. Modify pprofMatchingGoroutines to include
    *all* goroutines in the trace if the name to filter by is not specified.
    
    For #66782
    Fixes #68542
    Fixes #68546
    
    Change-Id: I6b72298d676bc93892b075a7426e6e56bc6656c7
    Reviewed-on: https://go-review.googlesource.com/c/go/+/578356
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Carlos Amedee <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    (cherry picked from commit d1f2cd8)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/600275
    Reviewed-by: Michael Knyszek <[email protected]>
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    mknyszek authored and gopherbot committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    70a1aae View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. [release-branch.go1.22] cmd/compile: add 0-sized-value simplification…

    … to copyelim
    
    The problem was caused by faulty handling of unSSA-able
    operations on zero-sized data in expand calls, but there
    is no point to operations on zero-sized data.  This CL adds
    a simplify step to the first place in SSA where all values
    are processed and replaces anything producing a 0-sized
    struct/array with the corresponding Struct/Array Make0
    operation (of the appropriate type).
    
    I attempted not generating them in ssagen, but that was a
    larger change, and also had bugs. This is simple and obvious.
    The only question is whether it would be worthwhile to do it
    earlier (in numberlines or phielem).
    
    Fixes #68594.
    Fixes #68585.
    
    Change-Id: I0a596b3d272798015e7bb6b1a20411241759fe0e
    Reviewed-on: https://go-review.googlesource.com/c/go/+/568258
    Reviewed-by: Cuong Manh Le <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit 6f5d774)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/601195
    dr2chase authored and mknyszek committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    8c8adff View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. [release-branch.go1.22] go1.22.6

    Change-Id: I44f2d95946993adffabc021347afdc41ca974ccd
    Reviewed-on: https://go-review.googlesource.com/c/go/+/603416
    Reviewed-by: David Chase <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    gopherbot committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    cb4eee6 View commit details
    Browse the repository at this point in the history
Loading