Home | History | Annotate | Download | only in wtf

Lines Matching refs:Scavenge

98 // Use a background thread to periodically scavenge memory to release back to the system
800 // fetch too many at a time, we end up having to scavenge too often
1238 // - Check if we needed to commit memory in the last 5 seconds. If so, skip this scavenge because it's a sign that we are short
1245 // Background thread wakes up every 5 seconds to scavenge as long as there is memory available to return to the system.
1251 // During a scavenge, we'll release up to a fraction of the free committed pages.
1363 // Number of pages that we committed in the last scavenge wait interval.
1408 void scavenge();
1510 void TCMalloc_PageHeap::scavenge()
1806 // Make sure the scavenge thread becomes active if we have enough freed pages to release some back to the system.
1819 if (scavenge_counter_ >= 0) return; // Not yet time to scavenge
1825 // Find index of free list to scavenge
1850 // Nothing to scavenge, delay for a while
2163 void Scavenge();
2377 pageheap->scavenge();
2388 pageheap->scavenge();
2779 if (size_ >= per_thread_cache_size) Scavenge();
2813 inline void TCMalloc_ThreadCache::Scavenge() {
2818 // may not release much memory, but if so we will call scavenge again
4428 // Low watermark mechanism in Scavenge() prevents full return on the first pass.
4431 threadCache->Scavenge();
4432 threadCache->Scavenge();