diff options
Diffstat (limited to 'src/lib/eo/eo_ptr_indirection.c')
-rw-r--r-- | src/lib/eo/eo_ptr_indirection.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/eo/eo_ptr_indirection.c b/src/lib/eo/eo_ptr_indirection.c index 01db8a289a..cd578a5a2a 100644 --- a/src/lib/eo/eo_ptr_indirection.c +++ b/src/lib/eo/eo_ptr_indirection.c @@ -104,8 +104,9 @@ _eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file, return tdata->cache.object; mid_table_id = (obj_id >> SHIFT_MID_TABLE_ID) & MASK_MID_TABLE_ID; - EINA_PREFETCH(&(tdata->eo_ids_tables[mid_table_id])); + EINA_PREFETCH_NOCACHE(&(tdata->eo_ids_tables[mid_table_id])); //prefetch for line 119 table_id = (obj_id >> SHIFT_TABLE_ID) & MASK_TABLE_ID; + EINA_PREFETCH_NOCACHE((tdata->eo_ids_tables[mid_table_id] + table_id)); //prefetch for line 121 entry_id = (obj_id >> SHIFT_ENTRY_ID) & MASK_ENTRY_ID; generation = obj_id & MASK_GENERATIONS; @@ -118,7 +119,7 @@ _eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file, if (tdata->eo_ids_tables[mid_table_id]) { _Eo_Ids_Table *tab = TABLE_FROM_IDS; - + EINA_PREFETCH_NOCACHE(tab); //prefetch for line 125 if (tab) { entry = &(tab->entries[entry_id]); @@ -137,14 +138,15 @@ _eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file, { eina_lock_take(&(_eo_table_data_shared_data->obj_lock)); if (obj_id == tdata->cache.id) - // yes we return keeping the lock locked. thats why + // yes we return keeping the lock locked. that's why // you must call _eo_obj_pointer_done() wrapped // by EO_OBJ_DONE() to release return tdata->cache.object; mid_table_id = (obj_id >> SHIFT_MID_TABLE_ID) & MASK_MID_TABLE_ID; - EINA_PREFETCH(&(tdata->eo_ids_tables[mid_table_id])); + EINA_PREFETCH_NOCACHE(&(tdata->eo_ids_tables[mid_table_id])); table_id = (obj_id >> SHIFT_TABLE_ID) & MASK_TABLE_ID; + EINA_PREFETCH_NOCACHE((tdata->eo_ids_tables[mid_table_id] + table_id)); entry_id = (obj_id >> SHIFT_ENTRY_ID) & MASK_ENTRY_ID; generation = obj_id & MASK_GENERATIONS; @@ -157,6 +159,7 @@ _eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file, if (tdata->eo_ids_tables[mid_table_id]) { _Eo_Ids_Table *tab = TABLE_FROM_IDS; + EINA_PREFETCH_NOCACHE(tab); if (tab) { @@ -166,7 +169,7 @@ _eo_obj_pointer_get(const Eo_Id obj_id, const char *func_name, const char *file, // Cache the result of that lookup tdata->cache.object = entry->ptr; tdata->cache.id = obj_id; - // yes we return keeping the lock locked. thats why + // yes we return keeping the lock locked. that's why // you must call _eo_obj_pointer_done() wrapped // by EO_OBJ_DONE() to release return entry->ptr; |