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
6339557676
commit
0375e6e01b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user