[all-commits] [llvm/llvm-project] 549a5f: [libc++] Make pmr::monotonic_buffer_resource bump ...

philnik777 via All-commits all-commits at lists.llvm.org
Thu Jan 12 09:36:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 549a5fd0b789578fcb5ee72c9f4446660f759758
      https://github.com/llvm/llvm-project/commit/549a5fd0b789578fcb5ee72c9f4446660f759758
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2023-01-12 (Thu, 12 Jan 2023)

  Changed paths:
    M libcxx/benchmarks/CMakeLists.txt
    A libcxx/benchmarks/monotonic_buffer.bench.cpp
    M libcxx/include/__memory_resource/monotonic_buffer_resource.h
    M libcxx/src/memory_resource.cpp
    A libcxx/test/libcxx/utilities/utility/mem.res/mem.res.monotonic.buffer/mem.res.monotonic.buffer.mem/allocate_from_underaligned_buffer.pass.cpp
    R libcxx/test/std/utilities/utility/mem.res/mem.res.monotonic.buffer/mem.res.monotonic.buffer.mem/allocate_from_underaligned_buffer.pass.cpp

  Log Message:
  -----------
  [libc++] Make pmr::monotonic_buffer_resource bump down

Bumping down is significantly faster than bumping up. This is ABI breaking, but the ABI of `pmr::monotonic_buffer_resource` was only stabilized in this release cycle, so we can still change it.
For a more detailed explanation why bumping down is better, see https://fitzgeraldnick.com/2019/11/01/always-bump-downwards.html.

Reviewed By: ldionne, #libc

Spies: libcxx-commits

Differential Revision: https://reviews.llvm.org/D141435




More information about the All-commits mailing list