Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c1b873c21745249657200c06d205ee9ae31c7692
https://github.com/WebKit/WebKit/commit/c1b873c21745249657200c06d205ee9ae31c7692
Author: Jean-Yves Avenard <[email protected]>
Date: 2023-10-11 (Wed, 11 Oct 2023)
Changed paths:
M Source/WTF/wtf/NativePromise.h
M Tools/TestWebKitAPI/Tests/WTF/NativePromise.cpp
Log Message:
-----------
[NativePromise] Shouldn't require to copy the resolved value when the promise
isn't exclusive
https://bugs.webkit.org/show_bug.cgi?id=262872
rdar://116664254
Reviewed by Youenn Fablet.
In Non-Exclusive mode, use a ref-counted storage that we pass around
rather than copying the data across all completion promises.
Fly-by fix: logging incorrectly returned that the promise had always been
resolved.
* Source/WTF/wtf/NativePromise.h:
* Tools/TestWebKitAPI/Tests/WTF/NativePromise.cpp:
(TestWebKitAPI::TEST):
Canonical link: https://commits.webkit.org/269241@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes