Example #1
0
 ~SharedLRU() {
   contents.clear();
   lru.clear();
   if (!weak_refs.empty()) {
     lderr(cct) << "leaked refs:\n";
     dump_weak_refs(*_dout);
     *_dout << dendl;
     assert(weak_refs.empty());
   }
 }
Example #2
0
 void dump_weak_refs() {
   lderr(cct) << "leaked refs:\n";
   dump_weak_refs(*_dout);
   *_dout << dendl;
 }
Example #3
0
/** 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);
}