[#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:
parent
b17ee6066f
commit
2472d8c3cf
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user