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

Function getAndClearCacheFailureMessage

bolt/common/memory/MemoryAllocator.cpp:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74std::string getAndClearCacheFailureMessage() {
75 auto errMsg = std::move(cacheFailureMessage());
76 cacheFailureMessage().clear(); // ensure its in valid state
77 return errMsg;
78}
79
80std::string MemoryAllocator::kindString(Kind kind) {
81 switch (kind) {
82 case Kind::kMalloc:

Callers 1

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected