aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/expr.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-04-12 10:35:43 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-04-12 22:38:31 +0100
commite48933f00d676658ad065d9691a1b61446745386 (patch)
tree960dd4e9efe489dad33e8abf25b4af328ee97b54 /gcc/d/expr.cc
parent2ce0f5185ba95131b3c538507323d8ecb561a0c2 (diff)
downloadgcc-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/d/expr.cc')
0 files changed, 0 insertions, 0 deletions