-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Under the JRE, use
java.util.concurrent.atomic.LongAdder
unconditio…
…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: 712973075
- Loading branch information
Showing
11 changed files
with
25 additions
and
1,250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LongAdder.java
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
guava-tests/test/com/google/common/cache/LongAdderTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.