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

Method getAndClearFailureMessage

bolt/common/memory/MemoryAllocator.cpp:466–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464
465std::string MemoryAllocator::getAndClearFailureMessage() {
466 auto allocatorErrMsg = std::move(allocatorFailureMessage());
467 allocatorFailureMessage().clear();
468 if (cache()) {
469 if (allocatorErrMsg.empty()) {
470 return getAndClearCacheFailureMessage();
471 }
472 allocatorErrMsg =
473 fmt::format("{} {}", allocatorErrMsg, getAndClearCacheFailureMessage());
474 }
475 return allocatorErrMsg;
476}
477
478namespace {
479struct TraceState {
480 struct rusage rusage;

Callers 7

allocateMethod · 0.80
allocateZeroFilledMethod · 0.80
reallocateMethod · 0.80
allocateNonContiguousMethod · 0.80
allocateContiguousMethod · 0.80
growContiguousMethod · 0.80
TEST_PFunction · 0.80

Calls 3

clearMethod · 0.45
emptyMethod · 0.45

Tested by 1

TEST_PFunction · 0.64