File tree Expand file tree Collapse file tree
dd-trace-core/src/main/java/datadog/trace/common/writer/ddagent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public final class GenerationalUtf8Cache implements EncodingCache {
7474 private static final int MAX_EDEN_PROBES = 4 ;
7575 private static final int MAX_TENURED_PROBES = 8 ;
7676
77- private static final int MIN_PROMOTION_TRESHOLD = 2 ;
77+ private static final int MIN_PROMOTION_THRESHOLD = 2 ;
7878 private static final int INITIAL_PROMOTION_THRESHOLD = 16 ;
7979
8080 private static final double SCORE_DECAY = 0.5D ;
@@ -169,7 +169,7 @@ public synchronized void recalibrate(long accessTimeMs) {
169169 recalibrate (this .tenuredEntries );
170170
171171 int totalPromotions = this .promotions + this .earlyPromotions ;
172- if (totalPromotions == 0 && this .promotionThreshold >= MIN_PROMOTION_TRESHOLD ) {
172+ if (totalPromotions == 0 && this .promotionThreshold >= MIN_PROMOTION_THRESHOLD ) {
173173 this .promotionThreshold /= PROMOTION_THRESHOLD_ADJ_FACTOR ;
174174 } else if (totalPromotions > this .tenuredEvictions / 2 ) {
175175 this .promotionThreshold *= PROMOTION_THRESHOLD_ADJ_FACTOR ;
You can’t perform that action at this time.
0 commit comments