WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
287524
[JSC] Implement an arena allocator for the compiler's transient allocations
https://bugs.webkit.org/show_bug.cgi?id=287524
Summary
[JSC] Implement an arena allocator for the compiler's transient allocations
Marcus Plutowski
Reported
2025-02-11 16:04:11 PST
rdar://114840482
Currently, we use a general-purpose allocator (libpas) for all allocations made by the compiler. Many of these allocations, however, have a trivially bounded lifetime -- starting no earlier than the beginning of a compilation job, and lasting no longer than the completion of that compilation job. While this does not apply to all compiler outputs, it stands to reason that we should be able to get a performance improvement by moving those allocations which do qualify over to an arena-based allocator. This would save both overhead on the allocation side (as we could use a simple bump-allocator ~100% of the time) and on deallocation (free becomes a no-op).
Attachments
Add attachment
proposed patch, testcase, etc.
Marcus Plutowski
Comment 1
2025-02-13 12:17:22 PST
Pull request:
https://github.com/WebKit/WebKit/pull/40575
EWS
Comment 2
2025-02-26 11:54:33 PST
Committed
291155@main
(9dd52f49f7c3): <
https://commits.webkit.org/291155@main
> Reviewed commits have been landed. Closing PR #40575 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