[RFC,2/6] mcheck: Microoptimize
Checks
Context |
Check |
Description |
dj/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
Commit Message
We can't mark the abortfunc pointer as __COLD, so instead just tell the
compiler that this branch is unlikely to be taken.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
malloc/mcheck-impl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -91,7 +91,7 @@ checkhdr (const struct hdr *hdr)
status = MCHECK_OK;
break;
}
- if (status != MCHECK_OK)
+ if (__glibc_unlikely (status != MCHECK_OK))
{
mcheck_used = 0;
(*abortfunc) (status);