[Webkit-unassigned] [Bug 198957] New: Add WTF::crossThreadCopy(T&&) to utilize String::isolatedCopy() &&

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 18 00:27:48 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=198957

            Bug ID: 198957
           Summary: Add WTF::crossThreadCopy(T&&) to utilize
                    String::isolatedCopy() &&
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com
                CC: Basuke.Suzuki at sony.com, beidson at apple.com,
                    cdumez at apple.com, darin at apple.com, mitz at webkit.org

Add WTF::crossThreadCopy(T&&) to utilize String::isolatedCopy() &&

&&-qualified String::isolatedCopy() has a optimization which
just does WTFMove if it isSafeToSendToAnotherThread which means
the object hasOneRef.
https://trac.webkit.org/browser/webkit/trunk/Source/WTF/wtf/text/WTFString.cpp?rev=246531#L640

WTF::crossThreadCopy is using only &-qualified isolatedCopy.
To use the optimization, add WTF::crossThreadCopy(T&&).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190618/4b58d132/attachment.html>


More information about the webkit-unassigned mailing list