From 689414ff0faa283f68625d6ee1416d318907646e Mon Sep 17 00:00:00 2001 From: louxiu Date: Mon, 25 May 2020 13:39:52 +0800 Subject: [PATCH] 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 --- common/src/main/java/io/netty/util/Recycler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/io/netty/util/Recycler.java b/common/src/main/java/io/netty/util/Recycler.java index 96710bad5e..2cbf170dcc 100644 --- a/common/src/main/java/io/netty/util/Recycler.java +++ b/common/src/main/java/io/netty/util/Recycler.java @@ -374,9 +374,9 @@ public abstract class Recycler { 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.