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]].
This commit is contained in:
parent
0508f0b810
commit
b1124648ff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user