]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Reuse temporary buffer utils in <stacktrace>
authorJonathan Wakely <jwakely@redhat.com>
Sat, 1 Jun 2024 09:45:55 +0000 (10:45 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 3 Jun 2024 20:17:54 +0000 (21:17 +0100)
commit2a83084ce5536353ceb8554e906f87273a59c4fd
treeccbfad5c73358e6046a43c45c54f23e13ea42a10
parentb0efdcbf58a76af3b8fff75f1d53d334fb5b46ee
libstdc++: Reuse temporary buffer utils in <stacktrace>

The non-throwing allocation logic in std::stacktrace duplicates the
logic in <bits/stl_tempbuf.h>, so we can just reuse those utilities.

libstdc++-v3/ChangeLog:

* include/std/stacktrace (basic_stacktrace::_Impl::_M_allocate):
Use __detail::__get_temporary_buffer.
(basic_stacktrace::_Impl::_M_deallocate): Use
__detail::__return_temporary_buffer.
libstdc++-v3/include/std/stacktrace