summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/tcmalloc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/tcmalloc/tcmalloc.cc')
-rw-r--r--third_party/tcmalloc/tcmalloc.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/tcmalloc/tcmalloc.cc b/third_party/tcmalloc/tcmalloc.cc
index e3bbb81..6853eba 100644
--- a/third_party/tcmalloc/tcmalloc.cc
+++ b/third_party/tcmalloc/tcmalloc.cc
@@ -616,6 +616,11 @@ class TCMallocImplementation : public MallocExtension {
Static::pageheap()->ReleaseFreePages();
}
+ virtual void Scavenge() {
+ SpinLockHolder h(Static::pageheap_lock());
+ Static::pageheap()->Scavenge();
+ }
+
virtual void SetMemoryReleaseRate(double rate) {
FLAGS_tcmalloc_release_rate = rate;
}