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)
commit38eed39da4dc08d8e73b9953e3055f00909ccc3d
tree9c3b20a06fb27381f49f999880ba184a13d1cc6a
parent91998496ad6c3251f48db00bc11baee0cda6c9aa
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: https://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