projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0508f0b
)
libstdc++: Fix incorrect branch prediction hint in std::stacktrace
author
Jonathan Wakely
<jwakely@redhat.com>
Mon, 11 Apr 2022 19:13:44 +0000
(20:13 +0100)
committer
Jonathan Wakely
<jwakely@redhat.com>
Mon, 11 Apr 2022 21:10:00 +0000
(22:10 +0100)
libstdc++-v3/ChangeLog:
* include/std/stacktrace (basic_stacktrace::_Impl::_M_allocate):
Change [[unlikely]] attribute to [[likely]].
libstdc++-v3/include/std/stacktrace
patch
|
blob
|
history
diff --git
a/libstdc++-v3/include/std/stacktrace
b/libstdc++-v3/include/std/stacktrace
index dd78c71c5dc416e2aaeffb4f740fd1380117e320..79038e803f2f1ab1e1f5939b4a32991347b19dd2 100644
(file)
--- 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)) [[
un
likely]]
+ if (0 < __n && __n <= _S_max_size(__alloc)) [[likely]]
{
_M_frames = __alloc.allocate(__n);
_M_capacity = __n;