Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/tcmalloc/tcmalloc.cc

Issue 206017: Issue 172109: Enable scavenging in RenderThread::IdleHandler.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/tcmalloc/malloc_extension.cc ('k') | third_party/tcmalloc/tcmalloc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/tcmalloc.cc
===================================================================
--- third_party/tcmalloc/tcmalloc.cc (revision 26229)
+++ third_party/tcmalloc/tcmalloc.cc (working copy)
@@ -616,6 +616,11 @@
Static::pageheap()->ReleaseFreePages();
}
+ virtual void Scavenge() {
+ SpinLockHolder h(Static::pageheap_lock());
+ Static::pageheap()->Scavenge();
+ }
+
virtual void SetMemoryReleaseRate(double rate) {
FLAGS_tcmalloc_release_rate = rate;
}
« no previous file with comments | « third_party/tcmalloc/malloc_extension.cc ('k') | third_party/tcmalloc/tcmalloc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698