Changeset 38866 in webkit for trunk/JavaScriptCore/wtf/FastMalloc.cpp
- Timestamp:
- Dec 1, 2008, 1:14:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/FastMalloc.cpp
r38853 r38866 3846 3846 void releaseFastMallocFreeMemory() 3847 3847 { 3848 // Flush free pages in the current thread cache back to the page heap. 3849 // Low watermark mechanism in Scavenge() prevents full return on the first pass. 3850 // The second pass flushes everything. 3851 if (TCMalloc_ThreadCache* threadCache = TCMalloc_ThreadCache::GetCacheIfPresent()) { 3852 threadCache->Scavenge(); 3853 threadCache->Scavenge(); 3854 } 3855 3848 3856 SpinLockHolder h(&pageheap_lock); 3849 3857 pageheap->ReleaseFreePages();
Note:
See TracChangeset
for help on using the changeset viewer.