WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
295749
Deprecate FastMalloc macro for new types
https://bugs.webkit.org/show_bug.cgi?id=295749
Summary
Deprecate FastMalloc macro for new types
Marcus Plutowski
Reported
2025-07-10 15:46:19 PDT
rdar://155564529
TZone is fully deployed, and is essentially perf-neutral. We want to move every type that we can from FastMalloc to TZoneMalloc, but don't want to do so all at once due to stability concerns / the possibility of novel perf regressions. Moreover, there are types with variable-width sizes (e.g. trailing arrays) which cannot always / generally be allocated with TZones. As such, we should do the following: 1. Change the macro name to make it clear that it should not be used by new types 2. Update the documentation in FastMalloc.h to point developers towards using TZoneMalloc 3. Update FastMalloc to take in the class-name as a parameter to make it easier to handle the transition.
Attachments
Add attachment
proposed patch, testcase, etc.
Marcus Plutowski
Comment 1
2025-07-11 10:22:59 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/47897
EWS
Comment 2
2025-07-16 15:28:15 PDT
Committed
297491@main
(d9db853f14ab): <
https://commits.webkit.org/297491@main
> Reviewed commits have been landed. Closing PR #47897 and removing active labels.
EWS
Comment 3
2025-07-16 20:18:11 PDT
Committed
297506@main
(411f20469889): <
https://commits.webkit.org/297506@main
> Reviewed commits have been landed. Closing PR #48165 and removing active labels.
Marcus Plutowski
Comment 4
2025-07-17 09:21:08 PDT
Re-opening for pull request
https://github.com/WebKit/WebKit/pull/48188
EWS
Comment 5
2025-07-17 12:28:07 PDT
Committed
297540@main
(37d4a6880db9): <
https://commits.webkit.org/297540@main
> Reviewed commits have been landed. Closing PR #48188 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug