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
293150
Report extra memory usage to JavaScriptCore from the Model Element
https://bugs.webkit.org/show_bug.cgi?id=293150
Summary
Report extra memory usage to JavaScriptCore from the Model Element
Aleksei Marchenko
Reported
2025-05-16 14:32:14 PDT
Additional memory used outside of GC or Web Process has to be reported via reportExtraMemoryAllocated/SlotVisitor::reportExtraMemoryVisited/SlotVisitor::reportExternalMemoryVisited JSC APIs. That should help GC to prioritize heavier objects. A good example is HTMLCanvasElement (CanvasBase). in IDL: [ ReportExtraMemoryCost, ReportExternalMemoryCost, ] In C++: size_t memoryCost() const; size_t externalMemoryCost() const;
Attachments
Add attachment
proposed patch, testcase, etc.
Aleksei Marchenko
Comment 1
2025-05-16 14:56:07 PDT
<
rdar://problem/143763757
>
Aleksei Marchenko
Comment 2
2025-05-16 14:57:11 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/45516
EWS
Comment 3
2025-05-21 11:37:02 PDT
Committed
295220@main
(910c6466a03f): <
https://commits.webkit.org/295220@main
> Reviewed commits have been landed. Closing PR #45516 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