Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cd55df4c208dd626fd15a72dd1a8927524b8f598
https://github.com/WebKit/WebKit/commit/cd55df4c208dd626fd15a72dd1a8927524b8f598
Author: Yusuke Suzuki <[email protected]>
Date: 2026-09-14 (Mon, 14 Sep 2026)
Changed paths:
M Source/WebCore/bindings/js/WebCoreJSClientData.cpp
M Source/WebCore/bindings/js/WebCoreJSClientData.h
M Source/WebCore/page/WebKitJSHandle.cpp
Log Message:
-----------
Use WeakGCMap for HandleToGlobalMap
https://bugs.webkit.org/show_bug.cgi?id=324026
rdar://187257818
Reviewed by Yijia Huang and Dan Hecht.
HandleToGlobalMap can be implemented efficiently by using WeakGCMap.
This patch removes HashMap based implementation and replace it with WeakGCMap.
* Source/WebCore/bindings/js/WebCoreJSClientData.cpp:
(WebCore::JSVMClientData::JSVMClientData):
* Source/WebCore/bindings/js/WebCoreJSClientData.h:
* Source/WebCore/page/WebKitJSHandle.cpp:
(WebCore::handleToGlobalMap):
(WebCore::handleToGlobalMapIfExists):
(WebCore::globalObjectForIdentifier):
(WebCore::WebKitJSHandle::jsHandleDestroyed):
(WebCore::WebKitJSHandle::WebKitJSHandle):
Canonical link: https://commits.webkit.org/321092@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications