Lines Matching defs:empty
102 void Eviction::TrimCache(bool empty) {
106 if (!empty && !ShouldTrim())
110 return TrimCacheV2(empty);
118 int target_size = empty ? 0 : max_size_;
125 if (node->Data()->dirty != backend_->GetCurrentEntryId() || empty) {
129 if (!EvictEntry(node.get(), empty, Rankings::NO_USE) && !test_mode_)
132 if (!empty) {
146 if (empty) {
195 void Eviction::TrimDeletedList(bool empty) {
197 TrimDeleted(empty);
259 bool Eviction::EvictEntry(CacheRankingsBlock* node, bool empty,
268 if (empty || !new_eviction_) {
288 void Eviction::TrimCacheV2(bool empty) {
304 if (!empty && NodeIsOldEnough(next[i].get(), i)) {
311 if (!empty && Rankings::LAST_ELEMENT == list)
314 if (empty)
319 int target_size = empty ? 0 : max_size_;
329 if (node->Data()->dirty != backend_->GetCurrentEntryId() || empty) {
333 if (!EvictEntry(node.get(), empty, static_cast<Rankings::List>(list)) &&
337 if (!empty && test_mode_)
340 if (!empty && (TimeTicks::Now() - start).InMilliseconds() > 20) {
347 if (!empty)
351 if (empty) {
356 factory_.NewRunnableMethod(&Eviction::TrimDeleted, empty));
359 if (empty) {
464 void Eviction::TrimDeleted(bool empty) {
475 (empty || (TimeTicks::Now() - start).InMilliseconds() < 20)) {
489 if (deleted && !empty && !test_mode_ &&