| 291 | } |
| 292 | |
| 293 | const uint8_t* cache_complement_blob_or_fallback( |
| 294 | size_t index, const std::vector<uint64_t>& offsets, const uint8_t* complement_host, |
| 295 | const uint8_t* mapped_fallback) { |
| 296 | if (complement_host != nullptr && index < offsets.size() && offsets[index] != kNoCacheComplement) |
| 297 | return complement_host + (size_t) offsets[index]; |
| 298 | return mapped_fallback; |
| 299 | } |
| 300 | |
| 301 | int64_t choose_resident_keep_from(const std::vector<uint64_t>& slot_bytes, uint64_t base_bytes, uint64_t budget, |
| 302 | int64_t lend_from) { |