Fix incorrect code description in sliding window logic of LeapArray (#2876)

* The "clean" logic has been removed in earlier version
This commit is contained in:
ZhongJinHacker 2022-09-15 09:40:37 +08:00 committed by GitHub
parent 9ac8e89dc4
commit b9dd399697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ public abstract class LeapArray<T> {
* *
* (1) Bucket is absent, then just create a new bucket and CAS update to circular array. * (1) Bucket is absent, then just create a new bucket and CAS update to circular array.
* (2) Bucket is up-to-date, then just return the bucket. * (2) Bucket is up-to-date, then just return the bucket.
* (3) Bucket is deprecated, then reset current bucket and clean all deprecated buckets. * (3) Bucket is deprecated, then reset current bucket.
*/ */
while (true) { while (true) {
WindowWrap<T> old = array.get(idx); WindowWrap<T> old = array.get(idx);