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: 2c1e5b0
Choose a base ref
...
head repository: golang/go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 26b5783
Choose a head ref
  • 13 commits
  • 25 files changed
  • 9 contributors

Commits on Sep 11, 2023

  1. [release-branch.go1.21] runtime: ignore SPWrite on innermost tracebac…

    …k frame
    
    Prior to CL 458218, gentraceback ignored the SPWrite function flag on
    the innermost frame when doing a precise traceback on the assumption
    that precise tracebacks could only be started from the morestack
    prologue, and that meant that the innermost function could not have
    modified SP yet.
    
    CL 458218 rearranged this logic a bit and unintentionally lost this
    particular case. As a result, if traceback starts in an assembly
    function that modifies SP (either as a result of stack growth or stack
    scanning during a GC preemption), traceback stop at the SPWrite
    function and then crash with "traceback did not unwind completely".
    
    Fix this by restoring the earlier special case for when the innermost
    frame is SPWrite.
    
    This is a fairly minimal change that should be easy to backport. I
    think a more robust change would be to encode this per-PC in the
    spdelta table, so it would be clear that we're unwinding from the
    morestack prologue and wouldn't rely on a complicated and potentially
    fragile set of conditions.
    
    Fixes #62464.
    
    Change-Id: I34f38157631890d33a79d0bd32e32c0fcc2574e4
    Reviewed-on: https://go-review.googlesource.com/c/go/+/526100
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Michael Pratt <[email protected]>
    Auto-Submit: Heschi Kreinick <[email protected]>
    aclements authored and gopherbot committed Sep 11, 2023
    1 Configuration menu
    Copy the full SHA
    d7a0626 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.21] runtime/metrics: fix /gc/scan/* metrics

    In the existing implementation, all /gc/scan/* metrics are
    always equal to 0 due to the dependency on gcStatDep not being
    set. This leads to gcStatAggregate always containing zeros, and
    always reporting 0 for those metrics.
    
    Also, add a test to ensure that /gc/scan/* metrics are not empty.
    
    For #62477.
    Fixes #62478.
    
    Change-Id: I67497347d50ed5c3ce1719a18714c062ec938cab
    Reviewed-on: https://go-review.googlesource.com/c/go/+/526116
    Reviewed-by: Michael Pratt <[email protected]>
    Auto-Submit: Heschi Kreinick <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Gandem authored and gopherbot committed Sep 11, 2023
    1 Configuration menu
    Copy the full SHA
    cd66ca0 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. [release-branch.go1.21] cmd/go: in TestScript/gotoolchain_path, remov…

    …e the user's PATH
    
    This test checks a behavior of GOTOOLCHAIN when an appropriate
    toolchain is found in PATH. That requires it to exclude any suitable
    toolchain binaries from the user's $PATH, which may otherwise
    interfere.
    
    Fixes #62711.
    Updates #62709.
    
    Change-Id: Ie9161e52d33a65be0b5265cb49e9f2bc8473e057
    Reviewed-on: https://go-review.googlesource.com/c/go/+/529217
    Auto-Submit: Bryan Mills <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit 30886b1)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/529435
    Run-TryBot: Bryan Mills <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    Bryan C. Mills authored and gopherbot committed Sep 19, 2023
    1 Configuration menu
    Copy the full SHA
    b64dc5f View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. [release-branch.go1.21] cmd/link: avoid deadcode of global map vars f…

    …or programs using plugins
    
    If a program imports the plugin package, the mechanisms in place for
    detecting and deleting unused global map variables are no longer safe,
    since it's possibly for a given global map var to be unreferenced in
    the main program but referenced by a plugin. This patch changes the
    linker to test for plugin use and to avoid removing any unused global
    map variables if the main program could possibly load up a plugin.
    
    Fixes #62505.
    Updates #62430.
    
    Change-Id: Ie00b18b681cb0d259e3c859ac947ade5778cd6c8
    (cherry picked from commit 660620d)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/526575
    Reviewed-by: Cherry Mui <[email protected]>
    Run-TryBot: Than McIntosh <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    thanm committed Sep 20, 2023
    1 Configuration menu
    Copy the full SHA
    556e9c3 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. [release-branch.go1.21] cmd/link: force old Apple linker in plugin mode

    There are some bugs in Apple's new linker that causes plugins to
    be built incorrectly. And the bugs probably will not be fixed when
    Xcode 15 is released (some time soon). Force old Apple linker to
    work around.
    
    Updates #61229.
    For #62598.
    
    Change-Id: I01ba5caadec6dc14f8c85dd02f78c1ed2e8b7d4d
    Reviewed-on: https://go-review.googlesource.com/c/go/+/527815
    Run-TryBot: Cherry Mui <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Than McIntosh <[email protected]>
    cherrymui committed Sep 21, 2023
    1 Configuration menu
    Copy the full SHA
    3ef4f93 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.21] cmd/link: disable DWARF by default in c-share…

    …d mode on darwin
    
    [This is a (manual) backport of CL 527415 to Go 1.21.]
    
    Currently, linking a Go c-shared object with C code using Apple's
    new linker, it fails with
    
    % cc a.c go.so
    ld: segment '__DWARF' filesize exceeds vmsize in 'go.so'
    
    Apple's new linker has more checks for unmapped segments. It is
    very hard to make it accept a Mach-O shared object with an
    additional DWARF segment.
    
    We may want to stop combinding DWARF into the shared object (see
    also #62577). For now, disable DWARF by default in c-shared mode
    on darwin.
    
    Updates #61229.
    For #62598.
    
    Change-Id: I525987b7fe1a4e64571327cb4696f98cc7b419a1
    Reviewed-on: https://go-review.googlesource.com/c/go/+/527816
    Reviewed-by: Than McIntosh <[email protected]>
    Run-TryBot: Cherry Mui <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    cherrymui committed Sep 21, 2023
    1 Configuration menu
    Copy the full SHA
    9bec49c View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.21] cmd/link: suppress -bind_at_load deprecation …

    …warning for ld-prime
    
    ld-prime emits a deprecation warning for -bind_at_load. The flag
    is needed for plugins to not deadlock (#38824) when linking with
    older darwin linker. It is supposedly not needed with newer linker
    when chained fixups are used. For now, we always pass it, and
    suppress the warning.
    
    Updates #61229.
    For #62598.
    
    Change-Id: I4b8a6f864a460c40dc38adbb533f664f7fd5343c
    Reviewed-on: https://go-review.googlesource.com/c/go/+/508696
    Reviewed-by: Than McIntosh <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Cherry Mui <[email protected]>
    (cherry picked from commit 040dbf9)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/527817
    cherrymui committed Sep 21, 2023
    1 Configuration menu
    Copy the full SHA
    fc57cc3 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. [release-branch.go1.21] runtime: increase g0 stack size in non-cgo case

    Currently, for non-cgo programs, the g0 stack size is 8 KiB on
    most platforms. With PGO which could cause aggressive inlining in
    the runtime, the runtime stack frames are larger and could
    overflow the 8 KiB g0 stack. Increase it to 16 KiB. This is only
    one per OS thread, so it shouldn't increase memory use much.
    
    Updates #62120.
    Updates #62489.
    Fixes #62537.
    
    Change-Id: I565b154517021f1fd849424dafc3f0f26a755cac
    Reviewed-on: https://go-review.googlesource.com/c/go/+/526995
    Reviewed-by: Michael Pratt <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit c6d550a)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/527055
    cherrymui committed Sep 22, 2023
    1 Configuration menu
    Copy the full SHA
    cd671a1 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. [release-branch.go1.21] runtime: always lock OS thread in debugcall

    Right now debuggers like Delve rely on the new goroutine created to run
    a debugcall function to run on the same thread it started on, up until
    it hits itself with a SIGINT as part of the debugcall protocol.
    
    That's all well and good, except debugCallWrap1 isn't particularly
    careful about not growing the stack. For example, if the new goroutine
    happens to have a stale preempt flag, then it's possible a stack growth
    will cause a roundtrip into the scheduler, possibly causing the
    goroutine to switch to another thread.
    
    Previous attempts to just be more careful around debugCallWrap1 were
    helpful, but insufficient. This change takes everything a step further
    and always locks the debug call goroutine and the new goroutine it
    creates to the OS thread.
    
    For #61732.
    Fixes #62509.
    
    Change-Id: I038f3a4df30072833e27e6a5a1ec01806a32891f
    Reviewed-on: https://go-review.googlesource.com/c/go/+/515637
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Alessandro Arzilli <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    (cherry picked from commit d9a4b24)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/526576
    mknyszek authored and thanm committed Sep 25, 2023
    1 Configuration menu
    Copy the full SHA
    0b6b0a2 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.21] cmd/compile: reset memcombine correctly betwe…

    …en basic blocks
    
    Not sure why this bug didn't cause a complete failure, but it
    certainly makes for doing a lot more work than is necessary.
    
    Fixes #62668
    
    Change-Id: If0be4acb6eafc3d7eeb42d2f4263c21b4e6e1c7d
    Reviewed-on: https://go-review.googlesource.com/c/go/+/527699
    Reviewed-by: David Chase <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Heschi Kreinick <[email protected]>
    (cherry picked from commit 08cdfd0)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/528795
    Reviewed-by: Keith Randall <[email protected]>
    randall77 authored and thanm committed Sep 25, 2023
    1 Configuration menu
    Copy the full SHA
    41d71a5 View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.21] cmd/compile: absorb InvertFlags into Noov com…

    …parisons
    
    Unfortunately, there isn't a single op that provides the resulting
    computation.
    At least, I couldn't find one.
    
    Fixes #62506
    
    Change-Id: I236f3965b827aaeb3d70ef9fe89be66b116494f5
    Reviewed-on: https://go-review.googlesource.com/c/go/+/526276
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    (cherry picked from commit fb5bdb4)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/526521
    Reviewed-by: Than McIntosh <[email protected]>
    randall77 authored and thanm committed Sep 25, 2023
    1 Configuration menu
    Copy the full SHA
    a15ef1b View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. [release-branch.go1.21] cmd/compile: use absolute file name in isCgo …

    …check
    
    For #23672
    Updates #63211
    Fixes #63214
    Fixes CVE-2023-39323
    
    Change-Id: I4586a69e1b2560036afec29d53e53cf25e6c7352
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/2032884
    Reviewed-by: Matthew Dempsky <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    (cherry picked from commit 9b19e751918dd218035811b1ef83a8c2693b864a)
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/2037958
    Reviewed-by: Damien Neil <[email protected]>
    Reviewed-by: Tatiana Bradley <[email protected]>
    Run-TryBot: Roland Shoemaker <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/533215
    Reviewed-by: Than McIntosh <[email protected]>
    Auto-Submit: Michael Pratt <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    ianlancetaylor authored and gopherbot committed Oct 5, 2023
    1 Configuration menu
    Copy the full SHA
    2ddfc04 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.21] go1.21.2

    Change-Id: Ie06bc8d8e8e170f13ed938a33038931513eaf067
    Reviewed-on: https://go-review.googlesource.com/c/go/+/533238
    Auto-Submit: Gopher Robot <[email protected]>
    Reviewed-by: Michael Pratt <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    gopherbot committed Oct 5, 2023
    1 Configuration menu
    Copy the full SHA
    26b5783 View commit details
    Browse the repository at this point in the history
Loading