Bug 269572

Summary: Make Skia use bmalloc/fastMalloc
Product: WebKit Reporter: Adrian Perez <aperez>
Component: PlatformAssignee: Adrian Perez <aperez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=273175
Bug Depends on: 269989    
Bug Blocks: 268972    

Adrian Perez
Reported 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.
Attachments
Adrian Perez
Comment 1 2024-02-16 08:20:38 PST
Adrian Perez
Comment 2 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
Radar WebKit Bug Importer
Comment 3 2024-02-23 06:24:13 PST
EWS
Comment 4 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.
Note You need to log in before you can comment on or make changes to this bug.