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

Method decreaseMemoryUsage

bolt/exec/LocalPartition.cpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57std::vector<ContinuePromise> LocalExchangeMemoryManager::decreaseMemoryUsage(
58 int64_t removed) {
59 std::vector<ContinuePromise> promises;
60 {
61 std::lock_guard<std::mutex> l(mutex_);
62 bufferedBytes_ -= removed;
63
64 if (bufferedBytes_ < maxBufferSize_) {
65 promises = std::move(promises_);
66 }
67 }
68 return promises;
69}
70
71void LocalExchangeQueue::addProducer() {
72 queue_.withWLock([&](auto& /*queue*/) {

Callers 4

noMoreDataMethod · 0.45
nextMethod · 0.45
abortMethod · 0.45
closeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected