From e6163e52b9a9f9e57dc6877e65b7316c962cd3ed Mon Sep 17 00:00:00 2001 From: Jean Guyomarc'h Date: Tue, 9 Jan 2018 00:02:59 +0100 Subject: [PATCH] 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. --- src/lib/eo/eo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 49e02ba..8052fd7 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) } return isa; -err_shared_class: +err_shared_class: EINA_COLD _EO_POINTER_ERR(klass_id, "Class (%p) is an invalid ref.", klass_id); EO_OBJ_DONE(eo_id); -err_shared_obj: +err_shared_obj: EINA_COLD eina_lock_release(&(_eo_table_data_shared_data->obj_lock)); return EINA_FALSE; -err_class: +err_class: EINA_COLD _EO_POINTER_ERR(klass_id, "Class (%p) is an invalid ref.", klass_id); err_obj: return EINA_FALSE; -err: +err: EINA_COLD ERR("Object %p is not a valid object in this context: object domain: %d, " "current domain: %d, local domain: %d, available domains: [%s %s %s %s]." " Are you trying to access this object from another thread?", -- 2.7.4