diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-04-12 10:35:43 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-04-12 22:38:31 +0100 |
commit | e48933f00d676658ad065d9691a1b61446745386 (patch) | |
tree | 960dd4e9efe489dad33e8abf25b4af328ee97b54 /gcc | |
parent | 2ce0f5185ba95131b3c538507323d8ecb561a0c2 (diff) | |
download | gcc-e48933f00d676658ad065d9691a1b61446745386.zip gcc-e48933f00d676658ad065d9691a1b61446745386.tar.gz gcc-e48933f00d676658ad065d9691a1b61446745386.tar.bz2 |
libstdc++: Use nothrow new in std::stacktrace
We can avoid the overhead of handling a bad_alloc exception from
std::allocator<std::stacktrace_entry>::allocate by just calling the
nothrow operator new instead.
libstdc++-v3/ChangeLog:
* include/std/stacktrace (basic_stacktrace::_Impl::_M_allocate):
Use nothrow new instead of try block for std::allocator.
(basic_stacktrace::_Impl::_M_deallocate): Use delete for
std::allocator.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions