Re: [PATCH] Improve handling of pool_options::largest_required_pool_block

2018-11-13 Thread Jonathan Wakely
On 13/11/18 22:59 +, Jonathan Wakely wrote: @@ -898,9 +907,10 @@ namespace pmr { auto p = std::lower_bound(std::begin(pool_sizes), std::end(pool_sizes), opts.largest_required_pool_block); -if (int npools = p - std::begin(pool_sizes)) - return npool

[PATCH] Improve handling of pool_options::largest_required_pool_block

2018-11-13 Thread Jonathan Wakely
Make the munge_options function round the largest_required_pool_block value to a multiple of the smallest pool size (currently 8 bytes) to avoid pools with odd sizes. Ensure there is a pool large enough for blocks of the requested size. Previously when largest_required_pool_block was exactly equa