[Webkit-unassigned] [Bug 21272] New: Switching between custom allocators (TCmalloc, JEmalloc) in linux-qt

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 1 03:22:37 PDT 2008


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

           Summary: Switching between custom allocators (TCmalloc, JEmalloc)
                    in linux-qt
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: Horvath.Zoltan.6 at stud.u-szeged.hu


We modified build system of WebKit under linux-qt to use TCmalloc if
“--tcmalloc” parameter is given to build-webkit script. Even more, we
integrated JEmalloc into WebKit as well which is used if "--jemalloc" parameter
is given to build-webkit script. (In Mozilla the default allocator is
JEmalloc.) 
If we do not give any of these parameters to the build these libraries are not
used.

There are three patches:
 (enable_tcmalloc.patch) enables TCmalloc in WebKit (without JEmalloc)
 (enable_jemalloc.patch JEmalloc.h.patch JEmalloc.c.patch rb.h.patch) adds
JEmalloc to WebKit (without enabling TCmalloc)
 (enable_jetcmalloc.patch JEmalloc.h.patch JEmalloc.c.patch rb.h.patch) enables
TCmalloc and adds JEmalloc at the same time (in this case the user can switch
between the allocators in compile time)

Since under linux-qt global operator new and delete do not invoke allocators of
TC/JEmalloc, therefore only fastMalloc invokes them. On the other hand, the
experimental patches of bug #20422
(https://bugs.webkit.org/show_bug.cgi?id=20422) gives a solution where new and
delete also invoke custom allocators (TC/JEmalloc).


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



More information about the webkit-unassigned mailing list