Page MenuHomePhabricator

Calculate memory usage correctly for unordered_maps that use PoolAllocator
ClosedPublic

Authored by PiRK on May 16 2024, 14:30.

Details

Summary

Extracts the resource from a PoolAllocator and uses it for
calculation of the node's memory usage.

This is a partial backport of core#25325
https://github.com/bitcoin/bitcoin/pull/25325/commits/e19943f049ed8aa4f32a1d8440a9fbf160367f0f

with an ARM fix and additional test to make sure the pool is actually used by the nodes from core#28913

Depends on D16175

Test Plan

ninja check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

@bot build-linux32 build-linux-arm

PiRK published this revision for review.May 17 2024, 17:29
This revision is now accepted and ready to land.May 20 2024, 08:17