[Webkit-unassigned] [Bug 211054] New: Warn when NeverDestroyed<Lock> is used

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 26 14:07:05 PDT 2020


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

            Bug ID: 211054
           Summary: Warn when NeverDestroyed<Lock> is used
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ysuzuki at apple.com

Lock is designed to be constant-initialized. Just use `static Lock`, instead of `static NeverDestroyed<Lock>`.
`static Lock` is cleaner, efficient, and further it fixes the potential race issue which `NeverDestroyed<Lock>` has.

-- 
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/20200426/80244cbe/attachment-0001.htm>


More information about the webkit-unassigned mailing list