Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 910c6466a03f7b130f5ecb1119bbd15a188ae963
      
https://github.com/WebKit/WebKit/commit/910c6466a03f7b130f5ecb1119bbd15a188ae963
  Author: Aleksei Marchenko <[email protected]>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    M Source/WebCore/Modules/model-element/HTMLModelElement.cpp
    M Source/WebCore/Modules/model-element/HTMLModelElement.h
    M Source/WebCore/Modules/model-element/HTMLModelElement.idl

  Log Message:
  -----------
  Model Element reports extra memory cost to JSC
https://bugs.webkit.org/show_bug.cgi?id=293150
rdar://143763757

Reviewed by Ada Chan and Keith Miller.

Extra memory use is calculated based on resources loaded into the
HTMLModelElement (model data and, if available, environment data).
Additionally, memory cost members are atomic since they could be called
from GC threads via memoryCost().
Overall, this change should make GC more aggressive on the Model Element
and help with cases like page reloading.

* Source/WebCore/Modules/model-element/HTMLModelElement.cpp:
(WebCore::HTMLModelElement::didFinishLoading):
(WebCore::HTMLModelElement::didFailLoading):
(WebCore::HTMLModelElement::didFinishEnvironmentMapLoading):
(WebCore::HTMLModelElement::environmentMapResourceFinished):
(WebCore::HTMLModelElement::modelResourceFinished):
(WebCore::HTMLModelElement::reportExtraMemoryCost):
(WebCore::HTMLModelElement::memoryCost const):
(WebCore::HTMLModelElement::externalMemoryCost const):
* Source/WebCore/Modules/model-element/HTMLModelElement.h:
* Source/WebCore/Modules/model-element/HTMLModelElement.idl:

Canonical link: https://commits.webkit.org/295220@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to