-
Define monotonic_buffer_resource members out-of-line · ea2329d1
Move the allocation logic into libstdc++.so so that it can be changed without worrying about inlined code in existing binaries. Leave do_allocate inline so that calls to it can be devirtualized, and only the slow path needs to call into the library. * config/abi/pre/gnu.ver: Export monotonic_buffer_resource members. * include/std/memory_resource (monotonic_buffer_resource::release): Call _M_release_buffers to free buffers. (monotonic_buffer_resource::do_allocate): Call _M_new_buffer to allocate a new buffer from upstream. (monotonic_buffer_resource::_M_new_buffer): Declare. (monotonic_buffer_resource::_M_release_buffers): Declare. (monotonic_buffer_resource::_Chunk): Replace definition with declaration as opaque type. * src/c++17/memory_resource.cc (monotonic_buffer_resource::_Chunk): Define. (monotonic_buffer_resource::_M_new_buffer): Define. (monotonic_buffer_resource::_M_release_buffers): Define. From-SVN: r263354
Jonathan Wakely committed
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
c++11 | Loading commit data... | |
c++17 | Loading commit data... | |
c++98 | Loading commit data... | |
filesystem | Loading commit data... | |
shared | Loading commit data... | |
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... |