-
Notifications
You must be signed in to change notification settings - Fork 107
Comparing changes
Open a pull request
base repository: uber-go/atomic
base: v1.9.0
head repository: uber-go/atomic
compare: v1.11.0
- 17 commits
- 40 files changed
- 7 contributors
Commits on Mar 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for adc54d9 - Browse repository at this point
Copy the full SHA adc54d9View commit details
Commits on May 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f9aa9cb - Browse repository at this point
Copy the full SHA f9aa9cbView commit details
Commits on Aug 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 976602f - Browse repository at this point
Copy the full SHA 976602fView commit details -
all: Update copyright notices (#112)
This will reduce noise in other PRs.
Configuration menu - View commit details
-
Copy full SHA for 122c956 - Browse repository at this point
Copy the full SHA 122c956View commit details -
Configuration menu - View commit details
-
Copy full SHA for edb52d7 - Browse repository at this point
Copy the full SHA edb52d7View commit details -
Test against Go 1.19 and lint only for the latest version. Update to latest staticcheck to work with 1.19.
Configuration menu - View commit details
-
Copy full SHA for d15bdad - Browse repository at this point
Copy the full SHA d15bdadView commit details
Commits on Aug 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 01497d2 - Browse repository at this point
Copy the full SHA 01497d2View commit details -
Add CompareAndSwap and Swap, Deprecate CAS (#111)
Adds CompareAndSwap and Swap methods to String, Error, and Value, implemented by making use of Value.CompareAndSwap and Value.Swap added in Go 1.17. Following that, add CompareAndSwap to all other types with "CAS" methods and deprecate CAS in favor of CompareAndSwap, since that's the convention the standard library chose for these in Go 1.19.
Configuration menu - View commit details
-
Copy full SHA for d4bbbc8 - Browse repository at this point
Copy the full SHA d4bbbc8View commit details
Commits on Aug 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d144bb6 - Browse repository at this point
Copy the full SHA d144bb6View commit details -
Adds a Pointer[T] type that provide the same functionality as Go 1.19's `sync/atomic.Pointer[T]` in both, Go 1.18 and 1.19. In Go 1.19, this uses the standard library's implementation, and in 1.18 our own custom implementation based on UnsafePointer. For Go 1.17, even though it's now unsupported, this is a no-op. Refs GO-1572 Resolves #115
Configuration menu - View commit details
-
Copy full SHA for 2ab21d8 - Browse repository at this point
Copy the full SHA 2ab21d8View commit details
Commits on Aug 11, 2022
-
Prepare release v1.10.0 (#118)
Prepare a new release with the following changes: v1.9.0...2ab21d8
Configuration menu - View commit details
-
Copy full SHA for 9680036 - Browse repository at this point
Copy the full SHA 9680036View commit details
Commits on Sep 6, 2022
-
chore(gen-*): Move templates into external files (#121)
This moves the templates used by gen-atomicint and gen-atomicwrapper into external files embedded into the corresponding gen binary with go:embed.
Configuration menu - View commit details
-
Copy full SHA for 159e329 - Browse repository at this point
Copy the full SHA 159e329View commit details
Commits on Sep 20, 2022
-
Implement String method for pointers (#122)
* Implement String method for pointers By implementing this method ourselves using atomic loading and fmt.Sprint, we can avoid possible unguarded accesses to the embedded pointer if someone attempts to fmt.Print the atomic.Pointer . * Use Pointer.Load, not wrapped.Load Co-authored-by: Abhinav Gupta <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 78a3b8e - Browse repository at this point
Copy the full SHA 78a3b8eView commit details
Commits on Feb 6, 2023
-
Fix Swap and CompareAndSwap for Value wrappers (#130)
* Regenerate code to update copyright end year to 2023 * Test behaviour of default values initialized in different ways This adds repro tests for #126 and #129 * Fix Swap and CompareAndSwap for Value wrappers Fixes #126, #129 All atomic types can be used without initialization, e.g., `var v <AtomicType>`. This works fine for integer types as the initialized value of 0 matches the default value for the user-facing type. However, for Value wrappers, they are initialized to `nil`, which is a value that can't be set (triggers a panic) so the default value for the user-facing type is forced to be stored as a different value. This leads to multiple possible values representing the default user-facing type. E.g., an `atomic.String` with value `""` may be represented by the underlying atomic as either `nil`, or `""`. This causes issues when we don't handle the `nil` value correctly, causing to panics in `Swap` and incorrectly not swapping values in `CompareAndSwap`. This change fixes the above issues by: * Requiring `pack` and `unpack` function in gen-atomicwrapper as the only place we weren't supplying them was for `String`, and the branching adds unnecessary complexity, especially with added `nil` handling. * Extending `CompareAndSwap` for `Value` wrappers to try an additional `CompareAndSwap(nil, <new>)` only if the original `CompareAndSwap` fails and the old value is the zero value.
Configuration menu - View commit details
-
Copy full SHA for 1505d28 - Browse repository at this point
Copy the full SHA 1505d28View commit details
Commits on Mar 20, 2023
-
Minimize permissions to CI workflows (#133)
Set only read permission on CI workflows since they don't need write access. Fixes #132.
Configuration menu - View commit details
-
Copy full SHA for 544d6aa - Browse repository at this point
Copy the full SHA 544d6aaView commit details
Commits on May 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2a750c4 - Browse repository at this point
Copy the full SHA 2a750c4View commit details
Commits on May 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 76f817c - Browse repository at this point
Copy the full SHA 76f817cView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.9.0...v1.11.0