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.23.1
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.23.2
Choose a head ref
  • 9 commits
  • 25 files changed
  • 6 contributors

Commits on Sep 5, 2024

  1. [release-branch.go1.23] cmd/cgo: correct padding required by alignment

    If the aligned offset isn't sufficient for the field offset,
    we were padding based on the aligned offset. We need to pad
    based on the original offset instead.
    
    Also set the Go alignment correctly for int128. We were defaulting
    to the maximum alignment, but since we translate int128 into an
    array of uint8 the correct Go alignment is 1.
    
    For #69086
    Fixes #69219
    
    Change-Id: I23ce583335c81beac2ac51f7f9336ac97ccebf09
    Reviewed-on: https://go-review.googlesource.com/c/go/+/608815
    Reviewed-by: Damien Neil <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    (cherry picked from commit c209892)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/611296
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    Commit-Queue: Ian Lance Taylor <[email protected]>
    ianlancetaylor authored and gopherbot committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    80ff7cd View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. [release-branch.go1.23] runtime: size maps.Clone destination bucket a…

    …rray safely
    
    In rare situations, like during same-sized grows, the source map for
    maps.Clone may be overloaded (has more than 6.5 entries per
    bucket). This causes the runtime to allocate a larger bucket array for
    the destination map than for the source map. The maps.Clone code
    walks off the end of the source array if it is smaller than the
    destination array.
    
    This is a pretty simple fix, ensuring that the destination bucket
    array is never longer than the source bucket array. Maybe a better fix
    is to make the Clone code handle shorter source arrays correctly, but
    this fix is deliberately simple to reduce the risk of backporting this
    fix.
    
    Fixes #69156
    
    Change-Id: I824c93d1db690999f25a3c43b2816fc28ace7509
    Reviewed-on: https://go-review.googlesource.com/c/go/+/610377
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Cuong Manh Le <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    randall77 authored and gopherbot committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    a886959 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.23] internal/weak: shade pointer in weak-to-stron…

    …g conversion
    
    There's a bug in the weak-to-strong conversion in that creating the
    *only* strong pointer to some weakly-held object during the mark phase
    may result in that object not being properly marked.
    
    The exact mechanism for this is that the new strong pointer will always
    point to a white object (because it was only weakly referenced up until
    this point) and it can then be stored in a blackened stack, hiding it
    from the garbage collector.
    
    This "hide a white pointer in the stack" problem is pretty much exactly
    what the Yuasa part of the hybrid write barrier is trying to catch, so
    we need to do the same thing the write barrier would do: shade the
    pointer.
    
    Added a test and confirmed that it fails with high probability if the
    pointer shading is missing.
    
    For #69210.
    Fixes #69240.
    
    Change-Id: Iaae64ae95ea7e975c2f2c3d4d1960e74e1bd1c3f
    Reviewed-on: https://go-review.googlesource.com/c/go/+/610396
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Reviewed-by: Michael Pratt <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    (cherry picked from commit 79fd633)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/610696
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    mknyszek authored and gopherbot committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    82575f7 View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.23] os: dup pidfd if caller sets PidFD manually

    For #68984.
    Fixes #69119.
    
    Change-Id: I16d25777cb38a337cd4204a8147eaf866c3df9e1
    Reviewed-on: https://go-review.googlesource.com/c/go/+/607695
    Reviewed-by: Kirill Kolyshkin <[email protected]>
    Reviewed-by: Michael Pratt <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Commit-Queue: Ian Lance Taylor <[email protected]>
    Reviewed-by: David Chase <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    (cherry picked from commit 239666c)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/611415
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    TryBot-Bypass: Dmitri Shuralyov <[email protected]>
    fuweid authored and gopherbot committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    e6598e7 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. [release-branch.go1.23] unique: don't retain uncloned input as key

    Currently the unique package tries to clone strings that get stored in
    its internal map to avoid retaining large strings.
    
    However, this falls over entirely due to the fact that the original
    string is *still* stored in the map as a key. Whoops. Fix this by
    storing the cloned value in the map instead.
    
    This change also adds a test which fails without this change.
    
    For #69370.
    Fixes #69383.
    
    Change-Id: I1a6bb68ed79b869ea12ab6be061a5ae4b4377ddb
    Reviewed-on: https://go-review.googlesource.com/c/go/+/610738
    Reviewed-by: Michael Pratt <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit 21ac23a)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/612295
    Auto-Submit: Tim King <[email protected]>
    mknyszek authored and gopherbot committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    a74951c View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. [release-branch.go1.23] syscall: on exec failure, close pidfd

    For #69284
    Fixes #69402
    
    Change-Id: I6350209302778ba5e44fa03d0b9e680d2b4ec192
    Reviewed-on: https://go-review.googlesource.com/c/go/+/611495
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: roger peppe <[email protected]>
    Reviewed-by: Tim King <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    (cherry picked from commit 8926ca9)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/613616
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    Reviewed-by: Tobias Klauser <[email protected]>
    ianlancetaylor authored and gopherbot committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    c8c6f9a View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. [release-branch.go1.23] cmd/compile: fix wrong esacpe analysis for ra…

    …ngefunc
    
    CL 584596 "-range<N>" suffix to the name of closure generated for a
    rangefunc loop body. However, this breaks the condition that escape
    analysis uses for checking whether a closure contains within function,
    which is "F.funcN" for outer function "F" and closure "funcN".
    
    Fixing this by adding new "-rangeN" to the condition.
    
    Updates #69434
    Fixes #69511
    
    Change-Id: I411de8f63b69a6514a9e9504d49d62e00ce4115d
    Reviewed-on: https://go-review.googlesource.com/c/go/+/614096
    Reviewed-by: David Chase <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Cuong Manh Le <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/614195
    cuonglm authored and dr2chase committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    fbddfae View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. [release-branch.go1.23] runtime: if stop/reset races with running tim…

    …er, return correct result
    
    The timer code is careful to ensure that if stop/reset is called
    while a timer is being run, we cancel the run. However, the code
    failed to ensure that in that case stop/reset returned true,
    meaning that the timer had been stopped. In the racing case
    stop/reset could see that t.when had been set to zero,
    and return false, even though the timer had not and never would fire.
    
    Fix this by tracking whether a timer run is in progress,
    and using that to reliably detect that the run was cancelled,
    meaning that stop/reset should return true.
    
    For #69312
    Fixes #69333
    
    Change-Id: I78e870063eb96650638f12c056e32c931417c84a
    Reviewed-on: https://go-review.googlesource.com/c/go/+/611496
    Reviewed-by: David Chase <[email protected]>
    Reviewed-by: Cuong Manh Le <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    (cherry picked from commit 2ebaff4)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/616096
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Commit-Queue: Ian Lance Taylor <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    ianlancetaylor authored and gopherbot committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    3b2e846 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. [release-branch.go1.23] go1.23.2

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