PoolThreadCache uses wrong variable in IllegalArgumentException
Motivation: PoolThreadCache includes the wrong value when throwing a IllegalArgumentException because of freeSweepAllocationThreshold. Modifications: Use the correct value. Result: Correct exception message.
This commit is contained in:
parent
fcbeebf6df
commit
b32e07c75a
@ -77,7 +77,7 @@ final class PoolThreadCache {
|
|||||||
}
|
}
|
||||||
if (freeSweepAllocationThreshold < 1) {
|
if (freeSweepAllocationThreshold < 1) {
|
||||||
throw new IllegalArgumentException("freeSweepAllocationThreshold: "
|
throw new IllegalArgumentException("freeSweepAllocationThreshold: "
|
||||||
+ maxCachedBufferCapacity + " (expected: > 0)");
|
+ freeSweepAllocationThreshold + " (expected: > 0)");
|
||||||
}
|
}
|
||||||
this.freeSweepAllocationThreshold = freeSweepAllocationThreshold;
|
this.freeSweepAllocationThreshold = freeSweepAllocationThreshold;
|
||||||
this.heapArena = heapArena;
|
this.heapArena = heapArena;
|
||||||
|
Loading…
Reference in New Issue
Block a user