MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / FreeImpl

Method FreeImpl

paddle/phi/core/memory/allocation/buffered_allocator.cc:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49bool BufferedAllocator::IsAllocThreadSafe() const { return mtx_ != nullptr; }
50
51void BufferedAllocator::FreeImpl(phi::Allocation *allocation) {
52 platform::LockGuardPtr<std::mutex> guard(mtx_);
53 allocations_.emplace(allocation->size(),
54 AllocationPtr(allocation, Allocator::AllocationDeleter));
55}
56
57phi::Allocation *BufferedAllocator::AllocateImpl(size_t size) {
58 {

Callers

nothing calls this directly

Calls 2

emplaceMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected