Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 193c672c58d91efbf9c9f894208ea93407a62aa8
https://github.com/WebKit/WebKit/commit/193c672c58d91efbf9c9f894208ea93407a62aa8
Author: Ben Nham <[email protected]>
Date: 2026-03-01 (Sun, 01 Mar 2026)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKJSScriptingBuffer.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/JSBuffer.mm
Log Message:
-----------
Allow JSBuffer to take virtual copy of read-only memory
https://bugs.webkit.org/show_bug.cgi?id=308889
rdar://171312066
Reviewed by Ryosuke Niwa.
To reduce the memory overhead of JSBuffer, allow it to take a virtual copy
rather than a physical
copy of memory within a read-only region.
Test: JSBuffer.Data
* Source/WebKit/UIProcess/API/Cocoa/WKJSScriptingBuffer.mm:
(isInReadOnlyRegion):
(-[WKJSScriptingBuffer initWithData:]):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/JSBuffer.mm:
(TEST(JSBuffer, Data)):
Canonical link: https://commits.webkit.org/308439@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications