MCPcopy Create free account
hub / github.com/bytedance/bolt / appendMove

Method appendMove

bolt/common/memory/Allocation.cpp:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void Allocation::appendMove(Allocation& other) {
61 for (auto& run : other.runs_) {
62 numPages_ += run.numPages();
63 runs_.push_back(std::move(run));
64 }
65 other.runs_.clear();
66 other.numPages_ = 0;
67}
68
69void Allocation::findRun(uint64_t offset, int32_t* index, int32_t* offsetInRun)
70 const {

Callers 2

TEST_FFunction · 0.80
evictMethod · 0.80

Calls 3

numPagesMethod · 0.45
push_backMethod · 0.45
clearMethod · 0.45

Tested by 1

TEST_FFunction · 0.64