[Webkit-unassigned] [Bug 229435] ThreadSanitizer: data race of WTF::StringImpl in WebCoreNSURLSessionDataTask._metrics instance variable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 23 19:40:26 PDT 2021


--- Comment #2 from David Kilzer (:ddkilzer) <ddkilzer at webkit.org> ---
One way to fix this is for -[WebCoreNSURLSessionTaskTransactionMetrics _initWithMetrics:] to make a defensive isolatedCopy() of its argument every time.

Another potential fix would be to make -[WebCoreNSURLSessionTaskTransactionMetrics _initWithMetrics:] and -[WebCoreNSURLSessionTaskMetrics _initWithMetrics:] take a WTFMove()-able `WebCore::NetworkLoadMetrics&&` argument type, but this relies on callers knowing that they need to make an isolatedCopy() first.

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/20210824/7acff281/attachment.htm>

More information about the webkit-unassigned mailing list