summaryrefslogtreecommitdiffstats
path: root/sal/rtl/strtmpl.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-01-05 20:36:56 +0000
committerMichael Meeks <michael.meeks@collabora.com>2016-01-06 09:38:16 +0000
commite75406e54c57fc3113d4f1983249eb2aec0a3bcd (patch)
tree68c4ed87da6e22b6cca557bc3b5d17af2b029c8a /sal/rtl/strtmpl.cxx
parenttdf#39631: Add optimisation helpers (diff)
downloadcore-e75406e54c57fc3113d4f1983249eb2aec0a3bcd.tar.gz
core-e75406e54c57fc3113d4f1983249eb2aec0a3bcd.zip
tdf#39631 - branch hints: comment, and tweak variously, also use.
Find a few million mis-predicted branches (according to callgrind) and annotate them. Mark string acquire/release as hot, and a number of deprecated methods as cold. Change-Id: I678b3981794221c97f9ebb70fd0161c0fda5dceb
Diffstat (limited to 'sal/rtl/strtmpl.cxx')
-rw-r--r--sal/rtl/strtmpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx
index 41ab63fd69bd..7260fbcfc9d4 100644
--- a/sal/rtl/strtmpl.cxx
+++ b/sal/rtl/strtmpl.cxx
@@ -1214,7 +1214,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( acquire )( IMPL_RTL_STRINGDATA* pThis )
void SAL_CALL IMPL_RTL_STRINGNAME( release )( IMPL_RTL_STRINGDATA* pThis )
SAL_THROW_EXTERN_C()
{
- if (SAL_STRING_IS_STATIC (pThis))
+ if (SAL_UNLIKELY(SAL_STRING_IS_STATIC (pThis)))
return;
/* OString doesn't have an 'intern' */