Lines Matching refs:cache
490 CacheDataType* cache) { in InternalCachedRead() argument
492 auto entry = cache->find(addr_page); in InternalCachedRead()
494 if (entry != cache->end()) { in InternalCachedRead()
497 cache_dst = (*cache)[addr_page]; in InternalCachedRead()
500 cache->erase(addr_page); in InternalCachedRead()
516 entry = cache->find(addr_page); in InternalCachedRead()
517 if (entry != cache->end()) { in InternalCachedRead()
520 cache_dst = (*cache)[addr_page]; in InternalCachedRead()
523 cache->erase(addr_page); in InternalCachedRead()
547 CacheDataType* cache = reinterpret_cast<CacheDataType*>(memory); in MemoryThreadCache() local
548 delete cache; in MemoryThreadCache()
557 CacheDataType* cache = reinterpret_cast<CacheDataType*>(pthread_getspecific(*thread_cache_)); in ~MemoryThreadCache() local
558 delete cache; in ~MemoryThreadCache()
568 CacheDataType* cache = reinterpret_cast<CacheDataType*>(pthread_getspecific(*thread_cache_)); in CachedRead() local
569 if (cache == nullptr) { in CachedRead()
570 cache = new CacheDataType; in CachedRead()
571 pthread_setspecific(*thread_cache_, cache); in CachedRead()
574 return InternalCachedRead(addr, dst, size, cache); in CachedRead()
582 CacheDataType* cache = reinterpret_cast<CacheDataType*>(pthread_getspecific(*thread_cache_)); in Clear() local
583 if (cache != nullptr) { in Clear()
584 delete cache; in Clear()