Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under the JRE, use java.util.concurrent.atomic.LongAdder unconditionally and (except when we need to support GWT/J2CL) directly instead of through our LongAddable interfaces. #7607

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

copybara-service[bot]
Copy link
Contributor

Under the JRE, use java.util.concurrent.atomic.LongAdder unconditionally and (except when we need to support GWT/J2CL) directly instead of through our LongAddable interfaces.

It's available as of Java 8.

This eliminates our usages of Unsafe in Striped64, a part of the implementation of our LongAdder.

On the Android side, we'll have to wait until we require API Level 24.

RELNOTES=n/a

…nally and (except when we need to support GWT/J2CL) directly instead of through our `LongAddable` interfaces.

It's available [as of Java 8](https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/util/concurrent/atomic/LongAdder.html).

This eliminates our [usages of `Unsafe`](#6806) in `Striped64`, a part of the implementation of our `LongAdder`.

On the Android side, we'll have to wait [until we require API Level 24](https://developer.android.com/reference/java/util/concurrent/atomic/LongAdder).

RELNOTES=n/a
PiperOrigin-RevId: 713268966
@copybara-service copybara-service bot closed this Jan 8, 2025
@copybara-service copybara-service bot merged commit d1a3cd5 into master Jan 8, 2025
3 checks passed
@copybara-service copybara-service bot deleted the test_712973075 branch January 8, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant