[Webkit-unassigned] [Bug 111605] [Qt] QWebSettings::clearMemoryCaches should release FastMalloc's free pages to the system

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 7 10:33:30 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=111605





--- Comment #1 from Arunprasad <ararunprasad at gmail.com>  2013-03-07 10:35:55 PST ---
WTF's FastMalloc(TCMalloc) logic implements memory management which is optimized for faster allocation and release. FastMalloc maintains free-list for each thread and one central list per process to avoid semaphore locking overhead(lock contention). Periodically thread specific free blocks will be moved to central free-list then it will be released back to system using special thread named "scavenger".

Incase of memory pressure free-blocks scattered around threads should be released back to OS, so that other processes can use the memory. 

So modifying QWebSettings::clearMemoryCaches to call FastMalloc's page release functions.

I will upload the patch soon.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list