MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / FetchEntryList

Method FetchEntryList

tensorflow/core/framework/experimental_pmem_allocator.cc:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool ExperimentalPMemAllocator::SpaceEntryPool::FetchEntryList(
67 std::vector<void*>& dst, uint32_t b_size) {
68 if (pool_[b_size].size() != 0) {
69 std::lock_guard<spin_lock> lg(spins_[b_size]);
70 if (pool_[b_size].size() != 0) {
71 dst.swap(pool_[b_size].back());
72 pool_[b_size].pop_back();
73 return true;
74 }
75 }
76 return false;
77}
78
79void ExperimentalPMemAllocator::BackgroundWork() {
80 while (1) {

Callers 1

AllocateRawMethod · 0.80

Calls 4

pop_backMethod · 0.80
sizeMethod · 0.45
swapMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected