]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/assert: mark assert helpers with [[gnu::cold]] 23326/head
authorKefu Chai <kchai@redhat.com>
Mon, 30 Jul 2018 15:20:43 +0000 (23:20 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 30 Jul 2018 15:23:25 +0000 (23:23 +0800)
commitab6a032519aee01c05b2b01d45f0fd8be213bfdf
tree7d0fadb5ee3b29f63cdddd24b3272113b2dbff95
parentdf2196dbf83fe8a3d6fa94b04b680612ff479e23
common/assert: mark assert helpers with [[gnu::cold]]

for better performance,
see
https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/Common-Function-Attributes.html#Common-Function-Attributes

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/assert.cc