Skip to content
Merged

Typo #10719

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public final class GenerationalUtf8Cache implements EncodingCache {
private static final int MAX_EDEN_PROBES = 4;
private static final int MAX_TENURED_PROBES = 8;

private static final int MIN_PROMOTION_TRESHOLD = 2;
private static final int MIN_PROMOTION_THRESHOLD = 2;
private static final int INITIAL_PROMOTION_THRESHOLD = 16;

private static final double SCORE_DECAY = 0.5D;
Expand Down Expand Up @@ -169,7 +169,7 @@ public synchronized void recalibrate(long accessTimeMs) {
recalibrate(this.tenuredEntries);

int totalPromotions = this.promotions + this.earlyPromotions;
if (totalPromotions == 0 && this.promotionThreshold >= MIN_PROMOTION_TRESHOLD) {
if (totalPromotions == 0 && this.promotionThreshold >= MIN_PROMOTION_THRESHOLD) {
this.promotionThreshold /= PROMOTION_THRESHOLD_ADJ_FACTOR;
} else if (totalPromotions > this.tenuredEvictions / 2) {
this.promotionThreshold *= PROMOTION_THRESHOLD_ADJ_FACTOR;
Expand Down
Loading