]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix outdated comment in <stacktrace>
authorJonathan Wakely <jwakely@redhat.com>
Thu, 27 Feb 2025 21:58:09 +0000 (21:58 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 27 Feb 2025 22:03:50 +0000 (22:03 +0000)
My r15-998-g2a83084ce55363 change replaced the use of nothrow
operator new with a call to __get_temporary_buffer, so update the
comment to match.

libstdc++-v3/ChangeLog:

* include/std/stacktrace (_Impl::_M_allocate): Fix outdated
comment.

libstdc++-v3/include/std/stacktrace

index f94a424e4cff679daf29c8656d027e122ecf7276..491122293c5f094426a963b2c3a45b53108e9ba9 100644 (file)
@@ -559,7 +559,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
            {
              if constexpr (is_same_v<allocator_type, allocator<value_type>>)
                {
-                 // For std::allocator we use nothrow-new directly so we
+                 // Use non-throwing __get_temporary_buffer, so that we
                  // don't need to handle exceptions from __alloc.allocate(n).
                  auto __p = __detail::__get_temporary_buffer<value_type>(__n);
                  if (__p == nullptr) [[unlikely]]