diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-01-05 20:36:56 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-01-06 09:38:16 +0000 |
commit | e75406e54c57fc3113d4f1983249eb2aec0a3bcd (patch) | |
tree | 68c4ed87da6e22b6cca557bc3b5d17af2b029c8a /include/rtl | |
parent | eafb1ebf74c3caf8fbecdc6a4fc7037c3c8f4964 (diff) |
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 'include/rtl')
-rw-r--r-- | include/rtl/unload.h | 6 | ||||
-rw-r--r-- | include/rtl/ustring.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/rtl/unload.h b/include/rtl/unload.h index 53a5df18f515..412fad8a277b 100644 --- a/include/rtl/unload.h +++ b/include/rtl/unload.h @@ -68,19 +68,19 @@ typedef struct _rtl_StandardModuleCount @deprecated Do not use. */ -SAL_DLLPUBLIC void rtl_moduleCount_acquire(rtl_ModuleCount * that ); +SAL_DLLPUBLIC void rtl_moduleCount_acquire(rtl_ModuleCount * that ) SAL_COLD; /** Backwards-compatibility remainder of a removed library unloading feature. @deprecated Do not use. */ -SAL_DLLPUBLIC void rtl_moduleCount_release( rtl_ModuleCount * that ); +SAL_DLLPUBLIC void rtl_moduleCount_release( rtl_ModuleCount * that ) SAL_COLD; /** Backwards-compatibility remainder of a removed library unloading feature. @deprecated Do not use. */ -SAL_DLLPUBLIC sal_Bool rtl_moduleCount_canUnload( rtl_StandardModuleCount * that, TimeValue* libUnused); +SAL_DLLPUBLIC sal_Bool rtl_moduleCount_canUnload( rtl_StandardModuleCount * that, TimeValue* libUnused) SAL_COLD; #ifdef __cplusplus } diff --git a/include/rtl/ustring.h b/include/rtl/ustring.h index 01bcd0e8202a..aa58e5814911 100644 --- a/include/rtl/ustring.h +++ b/include/rtl/ustring.h @@ -1193,7 +1193,7 @@ typedef struct SAL_DLLPUBLIC_RTTI _rtl_uString a string. */ SAL_DLLPUBLIC void SAL_CALL rtl_uString_acquire( - rtl_uString * str ) SAL_THROW_EXTERN_C(); + rtl_uString * str ) SAL_THROW_EXTERN_C() SAL_HOT; /** Decrement the reference count of a string. @@ -1203,7 +1203,7 @@ SAL_DLLPUBLIC void SAL_CALL rtl_uString_acquire( a string. */ SAL_DLLPUBLIC void SAL_CALL rtl_uString_release( - rtl_uString * str ) SAL_THROW_EXTERN_C(); + rtl_uString * str ) SAL_THROW_EXTERN_C() SAL_HOT; /** Allocate a new string containing no characters. |