[Webkit-unassigned] [Bug 273175] New: [Skia] Use bmalloc directly instead of fastMalloc

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 24 01:49:42 PDT 2024


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

            Bug ID: 273175
           Summary: [Skia] Use bmalloc directly instead of fastMalloc
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com

In issue #269572 we made Skia use WTF::fastMalloc() and friends,
but the only advantage of using those over the bmalloc::api::*
functions is that the WTF ones will fallback to plain malloc()
the build is configured with USE_SYSTEM_MALLOC=ON -- but in this
case we anyway build “SkMemory_malloc.cpp” so there is really
no gain in using WTF.

At the same time, many things pulled in by “wtf/FastMalloc.h” are
completely unneeded by Skia, so we would simplify the build a bit
(hopefully shaving a few seconds).

While at it, the custom allocator source should be in
“Source/ThirdParty/skia/src/ports/SkMemory_*.cpp” along with the
other ones. Maybe even contributed to upstream Skia =)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240424/c40322b2/attachment.htm>


More information about the webkit-unassigned mailing list