[#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
a96874aad4
commit
451e6aeb66
@ -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