Bug 269572 - Make Skia use bmalloc/fastMalloc
Summary: Make Skia use bmalloc/fastMalloc
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adrian Perez
URL:
Keywords: InRadar
Depends on: 269989
Blocks: GLibSkia
  Show dependency treegraph
 
Reported: 2024-02-16 06:23 PST by Adrian Perez
Modified: 2024-04-24 01:49 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Perez 2024-02-16 06:23:06 PST
Skia supports defining a custom memory allocator, see for example
the one at skia/src/ports/SkMemory_mozalloc.cc to make it use the
same allocator as Firefox when Skia is built as part of Firefox.
We could do the same, calling WTF::fastMalloc() and friends.
Comment 1 Adrian Perez 2024-02-16 08:20:38 PST
Pull request: https://github.com/WebKit/WebKit/pull/24619
Comment 2 Adrian Perez 2024-02-20 08:00:06 PST
This will need a small patch in Skia, submitted here:

  https://skia-review.googlesource.com/c/skia/+/816036/1
Comment 3 Radar WebKit Bug Importer 2024-02-23 06:24:13 PST
<rdar://problem/123505828>
Comment 4 EWS 2024-02-26 04:27:15 PST
Committed 275315@main (8722ec73f50c): <https://commits.webkit.org/275315@main>

Reviewed commits have been landed. Closing PR #24619 and removing active labels.