Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ Allocate
Method
Allocate
util/memory/pool_ut.cpp:17–24 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
}
16
17
TBlock Allocate(size_t len) override {
18
Check();
19
20
Alloced_ += len;
21
++Allocs_;
22
23
return TDefaultAllocator::Allocate(len);
24
}
25
26
void Release(const TBlock& block) override {
27
Released_ += block.Len;
Callers
4
TestMemPool
Method · 0.45
TestAlign
Method · 0.45
TestLargeStartingAlign
Method · 0.45
TestRoundUpToNextPowerOfTwoOption
Method · 0.45
Calls
2
Check
Function · 0.50
Allocate
Function · 0.50
Tested by
4
TestMemPool
Method · 0.36
TestAlign
Method · 0.36
TestLargeStartingAlign
Method · 0.36
TestRoundUpToNextPowerOfTwoOption
Method · 0.36