Fix very tiny comment error in Recycler (#10309)

Motivation:

Fix very tiny comment error in Recycler

Modifications:

Fix very tiny comment error in Recycler

Result:

Correctly comment about drop in WeakOrderQueue#add
This commit is contained in:
louxiu 2020-05-25 13:39:52 +08:00 committed by GitHub
parent 6339557676
commit 0375e6e01b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,9 +377,9 @@ public abstract class Recycler<T> {
void add(DefaultHandle<?> handle) {
handle.lastRecycledId = id;
// While we also enforce the recycling ratio one we transfer objects from the WeakOrderQueue to the Stack
// While we also enforce the recycling ratio when we transfer objects from the WeakOrderQueue to the Stack
// we better should enforce it as well early. Missing to do so may let the WeakOrderQueue grow very fast
// without control if the Stack
// without control
if (handleRecycleCount < interval) {
handleRecycleCount++;
// Drop the item to prevent recycling to aggressive.