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/sync
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.21.0
Choose a base ref
...
head repository: golang/sync
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.22.0
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jul 1, 2026

  1. semaphore: panic on negative weights

    The semaphore.Weighted API accepts int64 for weights. If a negative
    weight is passed, it mathematically corrupts the internal state tracker
    (s.cur) and bypasses the package's existing safety checks.
    
    This adds strict boundary validation to panic immediately if a negative
    weight is provided.
    
    Fixes golang/go#80183
    
    Change-Id: I7e74bad404a8b99aef7e3d2189dda43f8ea644c2
    GitHub-Last-Rev: ee6289c
    GitHub-Pull-Request: #31
    Reviewed-on: https://go-review.googlesource.com/c/sync/+/796080
    Reviewed-by: Damien Neil <[email protected]>
    Reviewed-by: Zain Yousef <[email protected]>
    Reviewed-by: Alan Donovan <[email protected]>
    LUCI-TryBot-Result: [email protected] <[email protected]>
    Auto-Submit: Alan Donovan <[email protected]>
    ZainYoussef authored and gopherbot committed Jul 1, 2026
    Configuration menu
    Copy the full SHA
    1eb64d4 View commit details
    Browse the repository at this point in the history
Loading