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.
This commit is contained in:
Jean Guyomarc'h 2018-01-09 00:02:59 +01:00
parent f44ccfe1d5
commit 088f9b862f
1 changed files with 4 additions and 4 deletions

View File

@ -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?",