~SharedLRU() { contents.clear(); lru.clear(); if (!weak_refs.empty()) { lderr(cct) << "leaked refs:\n"; dump_weak_refs(*_dout); *_dout << dendl; assert(weak_refs.empty()); } }
void dump_weak_refs() { lderr(cct) << "leaked refs:\n"; dump_weak_refs(*_dout); *_dout << dendl; }
/** Reports a memory error (usually the inability to allocate memory), and quits\n * Used by the loader */ void ldmemerr() { lderr("cannot allocate memory!"); std::exit(1); }