[Libunwind-devel] [PATCH V2] Configurable cache size

2016-12-05 Thread Dave Watson
V3: * Add documentation * Fix indentation * size 0 means largest or resizeable cache * fix return code V2: This is a re-spin of Milian's last patch: http://lists.nongnu.org/archive/html/libunwind-devel/2014-10/msg6.html * Use item size and round up to nearest power of 2. * Initial cache

Re: [Libunwind-devel] [PATCH V2] Configurable cache size

2016-12-02 Thread Dave Watson
Hi Bert, Thanks for the review! V3 coming shortly. On 12/02/16 07:48 AM, Bert Wesarg wrote: > > include/dwarf.h | 21 ++- > > include/libunwind-common.h.in | 2 ++ > > src/Makefile.am | 6 +++-- > > src/dwarf/Gparser.c | 62 > > +

Re: [Libunwind-devel] [PATCH V2] Configurable cache size

2016-12-01 Thread Bert Wesarg
On Fri, Dec 2, 2016 at 12:20 AM, Dave Watson wrote: > This is a re-spin of Milian's last patch: > http://lists.nongnu.org/archive/html/libunwind-devel/2014-10/msg6.html > > Changes: > > * Use item size and round up to nearest power of 2. > > * Initial cache still exists in BSS. Without this,

[Libunwind-devel] [PATCH V2] Configurable cache size

2016-12-01 Thread Dave Watson
This is a re-spin of Milian's last patch: http://lists.nongnu.org/archive/html/libunwind-devel/2014-10/msg6.html Changes: * Use item size and round up to nearest power of 2. * Initial cache still exists in BSS. Without this, it means we would fail backtrace when out of memory. The test-m