Add final keyword which was missing in 47b598e6ce
Motivation: The two fields should have final keyword. Modifications: Add final keyword Result: Cleaner code.
This commit is contained in:
parent
a42bf5495e
commit
6b8c87997c
@ -58,15 +58,16 @@ abstract class PoolArena<T> implements PoolArenaMetric {
|
|||||||
private final List<PoolChunkListMetric> chunkListMetrics;
|
private final List<PoolChunkListMetric> chunkListMetrics;
|
||||||
|
|
||||||
// Metrics for allocations and deallocations
|
// Metrics for allocations and deallocations
|
||||||
private LongCounter allocationsTiny = PlatformDependent.newLongCounter();
|
|
||||||
private LongCounter allocationsSmall = PlatformDependent.newLongCounter();
|
|
||||||
private long allocationsNormal;
|
private long allocationsNormal;
|
||||||
// We need to use the LongCounter here as this is not guarded via synchronized block.
|
// We need to use the LongCounter here as this is not guarded via synchronized block.
|
||||||
|
private final LongCounter allocationsTiny = PlatformDependent.newLongCounter();
|
||||||
|
private final LongCounter allocationsSmall = PlatformDependent.newLongCounter();
|
||||||
private final LongCounter allocationsHuge = PlatformDependent.newLongCounter();
|
private final LongCounter allocationsHuge = PlatformDependent.newLongCounter();
|
||||||
|
|
||||||
private long deallocationsTiny;
|
private long deallocationsTiny;
|
||||||
private long deallocationsSmall;
|
private long deallocationsSmall;
|
||||||
private long deallocationsNormal;
|
private long deallocationsNormal;
|
||||||
|
|
||||||
// We need to use the LongCounter here as this is not guarded via synchronized block.
|
// We need to use the LongCounter here as this is not guarded via synchronized block.
|
||||||
private final LongCounter deallocationsHuge = PlatformDependent.newLongCounter();
|
private final LongCounter deallocationsHuge = PlatformDependent.newLongCounter();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user