Re: [PATCH 5/5][libbacktrace] Reduce memory usage in build_address_map

2018-12-27 Thread Ian Lance Taylor via gcc-patches
On Wed, Nov 28, 2018 at 3:18 PM Tom de Vries wrote: > > In build_address_map we allocate a unit, and then look for addresses in the > unit, which we store in the addrs vector, with the elements pointing to the > unit. However, if we cannot find addresses in the unit, the allocated unit is > not u

[PATCH 5/5][libbacktrace] Reduce memory usage in build_address_map

2018-11-28 Thread Tom de Vries
Hi, In build_address_map we allocate a unit, and then look for addresses in the unit, which we store in the addrs vector, with the elements pointing to the unit. However, if we cannot find addresses in the unit, the allocated unit is not used. Fix this by detecting if the allocated unit has been