aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/ChangeLog-2015
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-11-13 22:57:53 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2018-11-13 22:57:53 +0000
commitf2e005857e52ded5338e1179c0bb0fe3375cea71 (patch)
tree7215d345c266d8938cae0627f3d5592b824785d4 /libstdc++-v3/ChangeLog-2015
parentd3306a84a6cc954ff9d28d8a915a891fe15270f5 (diff)
downloadgcc-f2e005857e52ded5338e1179c0bb0fe3375cea71.zip
gcc-f2e005857e52ded5338e1179c0bb0fe3375cea71.tar.gz
gcc-f2e005857e52ded5338e1179c0bb0fe3375cea71.tar.bz2
Improve handling of pool_options::largest_required_pool_block
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 equal to one of the pool_sizes[] values there would be no pool of that size. This patch increases _M_npools by one, so there is a pool at least as large as the requested value. It also reduces the size of the largest pool to be no larger than needed. * src/c++17/memory_resource.cc (munge_options): Round up value of largest_required_pool_block to multiple of smallest pool size. Round excessively large values down to largest pool size. (select_num_pools): Increase number of pools by one unless it exactly matches requested largest_required_pool_block. (__pool_resource::_M_alloc_pools()): Make largest pool size equal largest_required_pool_block. * testsuite/20_util/unsynchronized_pool_resource/options.cc: Check that pool_options::largest_required_pool_block is set appropriately. From-SVN: r266089
Diffstat (limited to 'libstdc++-v3/ChangeLog-2015')
0 files changed, 0 insertions, 0 deletions