Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f880bc57ad506aadd0d3fb7872e35752740a99f2
      
https://github.com/WebKit/WebKit/commit/f880bc57ad506aadd0d3fb7872e35752740a99f2
  Author: Geoffrey Garen <[email protected]>
  Date:   2026-08-08 (Sat, 08 Aug 2026)

  Changed paths:
    M Source/WTF/WTF.xcodeproj/project.pbxproj
    M Source/WTF/wtf/CMakeLists.txt
    M Source/WTF/wtf/InlineWeakPtr.h
    M Source/WTF/wtf/InlineWeakRef.h
    A Source/WTF/wtf/Nonallocatable.h
    M Source/WTF/wtf/RefCountedWithInlineWeakPtr.h
    M Source/WTF/wtf/UniquelyOwned.h
    M Source/WTF/wtf/UniquelyOwnedPtr.h
    M Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
    M Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M Source/WebCore/rendering/RenderLayer.cpp
    M Source/WebCore/rendering/RenderLayer.h
    M Tools/TestWebKitAPI/CMakeLists.txt
    M Tools/TestWebKitAPI/Tests/WTF/CheckedPtr.cpp
    M Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp
    M Tools/TestWebKitAPI/Tests/WTF/HashSet.cpp
    M Tools/TestWebKitAPI/Tests/WTF/ListHashSet.cpp
    A Tools/TestWebKitAPI/Tests/WTF/RefCountedWithInlineWeakPtr.cpp

  Log Message:
  -----------
  RefCountedWithInlineWeakPtr is undef in GCC 15
https://bugs.webkit.org/show_bug.cgi?id=321243
rdar://184290928

Reviewed by Ryosuke Niwa.

This patch moves the refcount bits in RefCountedWithInlineWeakPtr<T> into a
separately declared type that is adjacent to T, instead of a base class of T.

Technically, it is undef to read bits out of T after ~T(), and GCC 15 is
aggressive about this. Separating the types works around this restriction.

The allocation and data layout should remain the exact same in practice.

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



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

Reply via email to