https://bugs.webkit.org/show_bug.cgi?id=38154 FastMalloc calls madvise too often.
authorslewis@apple.com <slewis@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Apr 2010 22:55:22 +0000 (22:55 +0000)
committerslewis@apple.com <slewis@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Apr 2010 22:55:22 +0000 (22:55 +0000)
commitb905986fdee56880a97dd1101307c61f0d9581af
tree9c3b20a06fb27381f49f999880ba184a13d1cc6a
parent7cd53ed17e6afbce35dc553396ffb5a9168b6299
https://bugs.webkit.org/show_bug.cgi?id=38154 FastMalloc calls madvise too often.
<rdar://problem/7834433> REGRESSSION: 1.5% PLT regression due to 56028 (return memory quicker).
To save on madvise calls when recommitting memory recommit the entire span and then carve it
instead of carving the span up and only committing the part that will be used immediately.

Reviewed by Geoff Garen.

* wtf/FastMalloc.cpp:
(WTF::TCMalloc_PageHeap::New):
(WTF::TCMalloc_PageHeap::AllocLarge):
(WTF::TCMalloc_PageHeap::Carve):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/wtf/FastMalloc.cpp
Makefile.shared
WebKit/WebKit.xcodeproj/project.pbxproj
WebKitLibraries/WebKitPluginAgent [new file with mode: 0755]
WebKitLibraries/WebKitPluginHost.app/Contents/Info.plist [new file with mode: 0644]
WebKitLibraries/WebKitPluginHost.app/Contents/MacOS/WebKitPluginHost [new file with mode: 0755]
WebKitLibraries/WebKitPluginHost.app/Contents/MacOS/WebKitPluginHostShim.dylib [new file with mode: 0755]
WebKitLibraries/WebKitPluginHost.app/Contents/PkgInfo [new file with mode: 0644]
WebKitLibraries/WebKitPluginHostShim.dylib [new file with mode: 0755]
WebKitTools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj
WebKitTools/Scripts/parse-malloc-history
WebKitTools/Scripts/run-javascriptcore-tests
WebKitTools/Scripts/webkitdirs.pm