Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dd44d905386dafa40def5c8c60a6e1181df80a00
      
https://github.com/WebKit/WebKit/commit/dd44d905386dafa40def5c8c60a6e1181df80a00
  Author: Geoffrey Garen <[email protected]>
  Date:   2025-11-12 (Wed, 12 Nov 2025)

  Changed paths:
    M Source/WTF/wtf/Atomics.h
    M Source/WTF/wtf/StdLibExtras.h

  Log Message:
  -----------
  Clean up opaque atomic variables
https://bugs.webkit.org/show_bug.cgi?id=302423
<rdar://problem/164585210>

Reviewed by Keith Miller.

* Source/WTF/wtf/Atomics.h:
(WTF::opaque): No need for volatile because we're only trying
to comment about our input value, not other values.

(WTF::addOpaqueZero): Moved to Atomics.h because this is not
useful outside of atomics.

(WTF::toInternalDependencyType): Changed to use opaque() instead of a
union because value punning through a union is technically undef in C++.

* Source/WTF/wtf/StdLibExtras.h:
(WTF::addOpaqueZero): Moved to Atomics.h.

Canonical link: https://commits.webkit.org/302941@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to