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

Method currentBytes

bolt/common/memory/MemoryPool.cpp:868–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866int64_t MemoryPoolImpl::releasableReservation() const {
867 if (isLeaf()) {
868 std::lock_guard<std::mutex> l(mutex_);
869 return std::max<int64_t>(
870 0, reservationBytes_ - quantizedSize(usedReservationBytes_));
871 }
872 if (reservedBytes() == 0) {
873 return 0;

Callers 15

tryEvictMethod · 0.45
reclaimFixedSizeMethod · 0.45
ensureInputFitsMethod · 0.45
ensureOutputFitsMethod · 0.45
reclaimTaskMethod · 0.45
ensureInputFitsMethod · 0.45
ensureInputFitsMethod · 0.45
runInternalMethod · 0.45
ensureInputFitsMethod · 0.45
getOutputMethod · 0.45
reclaimMethod · 0.45

Calls

no outgoing calls

Tested by 15

DEBUG_ONLY_TEST_FFunction · 0.36
testCycleMethod · 0.36
TEST_FFunction · 0.36
DEBUG_ONLY_TEST_PFunction · 0.36
TEST_PFunction · 0.36
DEBUG_ONLY_TEST_PFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
DEBUG_ONLY_TEST_FFunction · 0.36
runMethod · 0.36