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

Method MoveEntryList

tensorflow/core/framework/experimental_pmem_allocator.cc:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void ExperimentalPMemAllocator::SpaceEntryPool::MoveEntryList(
59 std::vector<void*>& src, uint32_t b_size) {
60 std::lock_guard<spin_lock> lg(spins_[b_size]);
61 assert(b_size < pool_.size());
62 pool_[b_size].emplace_back();
63 pool_[b_size].back().swap(src);
64}
65
66bool ExperimentalPMemAllocator::SpaceEntryPool::FetchEntryList(
67 std::vector<void*>& dst, uint32_t b_size) {

Callers 1

BackgroundWorkMethod · 0.80

Calls 4

sizeMethod · 0.45
emplace_backMethod · 0.45
swapMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected