Lines Matching defs:Mallocs
51 // Leak detection is expensive, so we first check if there were more mallocs
58 Mallocs = 0;
61 // Returns true if there were more mallocs than frees.
64 Printf("MallocFreeTracer: STOP %zd %zd (%s)\n", Mallocs.load(),
65 Frees.load(), Mallocs == Frees ? "same" : "DIFFERENT");
66 bool Result = Mallocs > Frees;
67 Mallocs = 0;
72 std::atomic<size_t> Mallocs;
82 // Locks printing and avoids nested hooks triggered from mallocs/frees in
102 size_t N = AllocTracer.Mallocs++;
634 return; // mallocs==frees, a leak is unlikely.
656 " to get a trace of mallocs and frees.\n"