MCPcopy Create free account
hub / github.com/catboost/catboost / Allocate

Method Allocate

util/memory/alloc.cpp:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using TBlock = TDefaultAllocator::TBlock;
7
8TBlock TDefaultAllocator::Allocate(size_t len) {
9 TBlock ret = {y_allocate(len), len};
10
11 return ret;
12}
13
14void TDefaultAllocator::Release(const TBlock& block) {
15 y_deallocate(block.Data);

Callers 3

AllocateFromPoolFunction · 0.45
AllocateFromPoolFunction · 0.45
AddChunkMethod · 0.45

Calls 1

y_allocateFunction · 0.85

Tested by

no test coverage detected