[Webkit-unassigned] [Bug 251883] New: WTF::ThreadSafeWeakPtrControlBlock::strongDeref() should use constexpr

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 7 13:31:23 PST 2023


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

            Bug ID: 251883
           Summary: WTF::ThreadSafeWeakPtrControlBlock::strongDeref()
                    should use constexpr
           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: ddkilzer at webkit.org

WTF::ThreadSafeWeakPtrControlBlock::strongDeref() should use constexpr.

While working on another patch, I realized that WTF::ThreadSafeWeakPtrControlBlock::strongDeref() could use constexpr instead of a switch statement.

The switch statement is kept in Debug builds in case an enum value is added to DestructionThread.

-- 
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/20230207/06505b69/attachment.htm>


More information about the webkit-unassigned mailing list