From: Jonathan Wakely Date: Mon, 11 Apr 2022 19:13:44 +0000 (+0100) Subject: libstdc++: Fix incorrect branch prediction hint in std::stacktrace X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1124648ff8f655307f264d7b353fd68e3b03e9c;p=test_jj.git libstdc++: Fix incorrect branch prediction hint in std::stacktrace libstdc++-v3/ChangeLog: * include/std/stacktrace (basic_stacktrace::_Impl::_M_allocate): Change [[unlikely]] attribute to [[likely]]. --- diff --git a/libstdc++-v3/include/std/stacktrace b/libstdc++-v3/include/std/stacktrace index dd78c71..79038e8 100644 --- a/libstdc++-v3/include/std/stacktrace +++ b/libstdc++-v3/include/std/stacktrace @@ -579,7 +579,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { __try { - if (0 < __n && __n <= _S_max_size(__alloc)) [[unlikely]] + if (0 < __n && __n <= _S_max_size(__alloc)) [[likely]] { _M_frames = __alloc.allocate(__n); _M_capacity = __n;