[#5216] Correctly increment deallocationsHuge when call PoolArena.free

Motivation:

We called deallocationsHuge.decrement() but it needs to be increment()

Modifications:

Replace decrement() with increment()

Result:

Correct metrics.
This commit is contained in:
Norman Maurer 2016-05-05 20:54:08 +02:00
parent b17ee6066f
commit 2472d8c3cf

View File

@ -254,7 +254,7 @@ abstract class PoolArena<T> implements PoolArenaMetric {
int size = chunk.chunkSize();
destroyChunk(chunk);
activeBytesHuge.add(-size);
deallocationsHuge.decrement();
deallocationsHuge.increment();
} else {
SizeClass sizeClass = sizeClass(normCapacity);
if (cache != null && cache.add(this, chunk, handle, normCapacity, sizeClass)) {