[webkit-changes] [WebKit/WebKit] c1b873: [NativePromise] Shouldn't require to copy the reso...
Jean-Yves Avenard
noreply at github.com
Wed Oct 11 23:22:50 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c1b873c21745249657200c06d205ee9ae31c7692
https://github.com/WebKit/WebKit/commit/c1b873c21745249657200c06d205ee9ae31c7692
Author: Jean-Yves Avenard <jya at apple.com>
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
More information about the webkit-changes
mailing list