Browse Source

accept existing cache if the cached block is larger than the requested view

master
Constantin Fürst 12 months ago
parent
commit
4fa5ef6522
  1. 3
      offloading-cacher/cache.hpp

3
offloading-cacher/cache.hpp

@ -359,9 +359,8 @@ inline std::unique_ptr<dsacache::CacheData> dsacache::Cache::GetFromCache(uint8_
if (search != cache_state_[dst_node].end()) { if (search != cache_state_[dst_node].end()) {
// now check whether the sizes match // now check whether the sizes match
// TODO: second.size_ >= size would also work
if (search->second.size_ == size) {
if (search->second.size_ >= size) {
std::cout << "[+] Found Cached version for 0x" << std::hex << (uint64_t)src << std::dec << std::endl; std::cout << "[+] Found Cached version for 0x" << std::hex << (uint64_t)src << std::dec << std::endl;
// return a unique copy of the entry which uses the object // return a unique copy of the entry which uses the object

Loading…
Cancel
Save