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:
parent
3f7dbd8790
commit
689414ff0f
@ -374,9 +374,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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user