Home
last modified time | relevance | path

Searched refs:shards_ (Results 1 – 5 of 5) sorted by relevance

/rocksdb-6.9/memory/
Dconcurrent_arena.h107 CoreLocalArray<Shard> shards_; variable
121 for (size_t i = 0; i < shards_.Size(); ++i) { in ShardAllocatedAndUnused()
122 total += shards_.AccessAtCore(i)->allocated_and_unused_.load( in ShardAllocatedAndUnused()
139 !shards_.AccessAtCore(0)->allocated_and_unused_.load( in AllocateImpl()
151 Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); in AllocateImpl()
Dconcurrent_arena.cc32 shards_(), in ConcurrentArena()
38 auto shard_and_index = shards_.AccessElementAndIndex(); in Repick()
42 tls_cpuid = shard_and_index.second | shards_.Size(); in Repick()
/rocksdb-6.9/cache/
Dlru_cache.cc474 shards_ = reinterpret_cast<LRUCacheShard*>( in LRUCache()
478 new (&shards_[i]) in LRUCache()
485 if (shards_ != nullptr) { in ~LRUCache()
488 shards_[i].~LRUCacheShard(); in ~LRUCache()
490 port::cacheline_aligned_free(shards_); in ~LRUCache()
495 return reinterpret_cast<CacheShard*>(&shards_[shard]); in GetShard()
499 return reinterpret_cast<CacheShard*>(&shards_[shard]); in GetShard()
518 shards_ = nullptr; in DisownData()
523 shards_ = nullptr; in DisownData()
532 lru_size_of_all_shards += shards_[i].TEST_GetLRUSize(); in TEST_GetLRUSize()
[all …]
Dclock_cache.cc708 shards_ = new ClockCacheShard[num_shards]; in ClockCache()
710 shards_[i].set_metadata_charge_policy(metadata_charge_policy); in ClockCache()
716 ~ClockCache() override { delete[] shards_; } in ~ClockCache()
721 return reinterpret_cast<CacheShard*>(&shards_[shard]); in GetShard()
725 return reinterpret_cast<CacheShard*>(&shards_[shard]); in GetShard()
740 void DisownData() override { shards_ = nullptr; } in DisownData()
743 ClockCacheShard* shards_; member in ROCKSDB_NAMESPACE::__anon9da5ff120111::ClockCache
Dlru_cache.h335 LRUCacheShard* shards_ = nullptr;