[libcxx-commits] [libcxx] [libc++] Refactor some code in monotonic_buffer_resource (PR #117271)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 21 19:31:56 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);
----------------
frederick-vs-ja wrote:
Oops, both `__try_allocate_from_chunk` functions are ABI-critical, which is probably indicated by lack of `_LIBCPP_HIDE_FROM_ABI`. They must still exist, although I'm not sure whether it's possibly to change their behaivor (if so, they can just return `nullptr`).
https://github.com/llvm/llvm-project/pull/117271
More information about the libcxx-commits
mailing list