summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2018-01-09 00:02:59 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2018-02-25 14:06:52 +0100
commit088f9b862f4e14e7a0528cd2c5e7a541be2df7af (patch)
treec3d3ef69d3d7419e2a6e8e34a434c2fd79d7f63e
parentf44ccfe1d57f70ed9a58a47f805037883c11f924 (diff)
eo: mark more unlikely labels as cold
This is one more hint the compiler can take to spatially isolate unlikely branches and possibly improving the hot paths.
-rw-r--r--src/lib/eo/eo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 49e02ba846..8052fd714f 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1775,19 +1775,19 @@ efl_isa(const Eo *eo_id, const Efl_Class *klass_id)
1775 } 1775 }
1776 return isa; 1776 return isa;
1777 1777
1778err_shared_class: 1778err_shared_class: EINA_COLD
1779 _EO_POINTER_ERR(klass_id, "Class (%p) is an invalid ref.", klass_id); 1779 _EO_POINTER_ERR(klass_id, "Class (%p) is an invalid ref.", klass_id);
1780 EO_OBJ_DONE(eo_id); 1780 EO_OBJ_DONE(eo_id);
1781err_shared_obj: 1781err_shared_obj: EINA_COLD
1782 eina_lock_release(&(_eo_table_data_shared_data->obj_lock)); 1782 eina_lock_release(&(_eo_table_data_shared_data->obj_lock));
1783 return EINA_FALSE; 1783 return EINA_FALSE;
1784 1784
1785err_class: 1785err_class: EINA_COLD
1786 _EO_POINTER_ERR(klass_id, "Class (%p) is an invalid ref.", klass_id); 1786 _EO_POINTER_ERR(klass_id, "Class (%p) is an invalid ref.", klass_id);
1787err_obj: 1787err_obj:
1788 return EINA_FALSE; 1788 return EINA_FALSE;
1789 1789
1790err: 1790err: EINA_COLD
1791 ERR("Object %p is not a valid object in this context: object domain: %d, " 1791 ERR("Object %p is not a valid object in this context: object domain: %d, "
1792 "current domain: %d, local domain: %d, available domains: [%s %s %s %s]." 1792 "current domain: %d, local domain: %d, available domains: [%s %s %s %s]."
1793 " Are you trying to access this object from another thread?", 1793 " Are you trying to access this object from another thread?",