Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/bolt
/ clear
Method
clear
bolt/common/memory/Allocation.cpp:118–121 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
116
}
117
118
void ContiguousAllocation::clear() {
119
pool_ = nullptr;
120
set(nullptr, 0);
121
}
122
123
MachinePageCount ContiguousAllocation::numPages() const {
124
return AllocationTraits::numPages(size_);
Callers
14
appendMove
Method · 0.45
freeNonContiguousInternal
Method · 0.45
allocateContiguousImpl
Method · 0.45
freeContiguousImpl
Method · 0.45
allocateBytesWithoutRetry
Method · 0.45
adviseAway
Method · 0.45
freeToPool
Method · 0.45
getAndClearCacheFailureMessage
Function · 0.45
getAndClearFailureMessage
Method · 0.45
startWrite
Method · 0.45
allocateNonContiguousWithoutRetry
Method · 0.45
allocateContiguousImpl
Method · 0.45
Calls
no outgoing calls
Tested by
1
startWrite
Method · 0.36