[libcxx-commits] [libcxx] [libc++] Refactor some code in monotonic_buffer_resource (PR #117271)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 22 00:16:34 PST 2024
================
@@ -38,7 +38,6 @@ class _LIBCPP_AVAILABILITY_PMR _LIBCPP_EXPORTED_FROM_ABI monotonic_buffer_resour
_LIBCPP_HIDE_FROM_ABI size_t __allocation_size() {
return (reinterpret_cast<char*>(this) - __start_) + sizeof(*this);
}
- void* __try_allocate_from_chunk(size_t, size_t);
----------------
ldionne wrote:
Those functions are on the ABI boundary, we can't remove them or change their behavior in a backwards incompatible way because pre-existing programs compiled against older versions of the headers will contain calls to this external function.
Unless nothing in the headers was ever calling into this function, in which case we might be able to remove it from the dylib. Is that the situation?
Edit: Doing a bit of searching, it seems like nobody's depending on that symbol, which would support that it was actually never needed as part of the ABI. I think it would be OK to remove it. You will need to update the `libcxx/lib/abi/*.abilist` files and `libcxx/lib/abi/CHANGELOG.TXT`.
https://github.com/llvm/llvm-project/pull/117271
More information about the libcxx-commits
mailing list