-
zoltan@webkit.org authored
Reviewed by Simon Hausmann. [Qt] Allow custom memory allocation control for the whole JavaScriptCore https://bugs.webkit.org/show_bug.cgi?id=27029 Since in JavaScriptCore almost every class which has been instantiated by operator new is inherited from FastAllocBase (bug #20422), we disable customizing global operator new for the Qt-port when USE_SYSTEM_MALLOC=0. Add #include <unistd.h> to FastMalloc.cpp because it's used by TCMalloc_PageHeap::scavengerThread(). (It's needed for the functionality of TCmalloc.) Add TCSystemAlloc.cpp to JavaScriptCore.pri if USE_SYSTEM_MALLOC is disabled. * JavaScriptCore.pri: * wtf/FastMalloc.cpp: (WTF::sleep): * wtf/FastMalloc.h: 2009-10-01 Zoltan Horvath <zoltan@webkit.org> Reviewed by Simon Hausmann. [Qt] Don't use TCmalloc in DumpRenderTree https://bugs.webkit.org/show_bug.cgi?id=27029 Add USE_SYSTEM_MALLOC macro to the DRT's profile to avoid using TCmalloc in Qt's DRT. * DumpRenderTree/qt/DumpRenderTree.pro: 2009-10-01 Zoltan Horvath <zoltan@webkit.org> Reviewed by Simon Hausmann. [Qt] Enable TCmalloc for the Linux, Mac and Windows Qt-port https://bugs.webkit.org/show_bug.cgi?id=27029 Remove USE_SYSTEM_MALLOC for Linux, Mac and Windows Qt-port from WebKit.pri, so these Qt-ports will use TCmalloc as other ports. * WebKit.pri: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0aaef196