Home | History | Annotate | Download | only in gc

Lines Matching defs:Trim

2020   // GC completed and now we must decide whether to request a heap trim (advising pages back to the
2021 // kernel) or not. Issuing a request will also cause trimming of the libc heap. As a trim scans
2026 // We don't have a good measure of how worthwhile a trim might be. We can't use the live bitmap
2028 // don't just call dlmalloc all the time, because the cost of an _attempted_ trim is proportional
2037 // not enabled, or if a heap trim occurred in the last two seconds.
2047 // Also: we do not wish to start a heap trim if the runtime is shutting down (a racy check
2048 // as we don't hold the lock while requesting the trim).
2056 // Trim only if we do not currently care about pause times.
2067 size_t Heap::Trim() {
2068 // Handle a requested heap trim on a thread outside of the main GC thread.
2069 return alloc_space_->Trim();