Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a23c635eab2a21fcfd9d982355297c7cc7e69eae
https://github.com/WebKit/WebKit/commit/a23c635eab2a21fcfd9d982355297c7cc7e69eae
Author: Chris Dumez <[email protected]>
Date: 2026-02-28 (Sat, 28 Feb 2026)
Changed paths:
M Source/WTF/wtf/RefCountDebugger.cpp
M Source/WTF/wtf/RefCountDebugger.h
M Source/WTF/wtf/ThreadSafeRefCounted.h
M Source/WTF/wtf/ThreadSafeRefCountedWithSuppressingSaferCPPChecking.h
M Source/WebCore/dom/Node.cpp
M Source/WebCore/dom/Node.h
M Source/WebGPU/WebGPU/CommandEncoder.swift
M Source/WebGPU/WebGPU/Queue.swift
M Source/WebKit/Shared/AuxiliaryProcess.cpp
M Source/WebKit/Shared/Cocoa/WebKit2InitializeCocoa.mm
M Source/WebKit/Shared/WebKit2Initialize.cpp
M Source/WebKitLegacy/mac/WebView/WebView.mm
Log Message:
-----------
[WTF] Add RefCountIsThreadSafe as template parameter to RefCountDebugger
https://bugs.webkit.org/show_bug.cgi?id=308880
Reviewed by Ryosuke Niwa.
Add RefCountIsThreadSafe as template parameter to RefCountDebugger
instead of passing it dynamically to some of RefCountDebugger's
functions. The value of RefCountIsThreadSafe doesn't change. This allows
simplifying the code a bit and leveraging `if constexpr`.
* Source/WTF/wtf/RefCountDebugger.cpp:
(WTF::RefCountDebuggerBase::logRefDuringDestruction):
(WTF::RefCountDebuggerBase::printRefDuringDestructionLogAndCrash):
(WTF::RefCountDebugger::logRefDuringDestruction): Deleted.
(WTF::RefCountDebugger::printRefDuringDestructionLogAndCrash): Deleted.
* Source/WTF/wtf/RefCountDebugger.h:
(WTF::RefCountDebuggerBase::enableThreadingChecksGlobally):
(WTF::RefCountDebuggerImpl::~RefCountDebuggerImpl):
(WTF::RefCountDebuggerImpl::willRef const):
(WTF::RefCountDebuggerImpl::applyRefDerefThreadingCheck const):
(WTF::RefCountDebuggerImpl::willDeref const):
(WTF::RefCountDebuggerImpl::initialOwnerThread):
(WTF::RefCountDebugger::initAsThreadSafe): Deleted.
(WTF::RefCountDebugger::~RefCountDebugger): Deleted.
(WTF::RefCountDebugger::willRef const): Deleted.
(WTF::RefCountDebugger::adopted): Deleted.
(WTF::RefCountDebugger::relaxAdoptionRequirement): Deleted.
(WTF::RefCountDebugger::disableThreadingChecks): Deleted.
(WTF::RefCountDebugger::enableThreadingChecksGlobally): Deleted.
(WTF::RefCountDebugger::applyRefDuringDestructionCheck const): Deleted.
(WTF::RefCountDebugger::applyRefDerefThreadingCheck const): Deleted.
(WTF::RefCountDebugger::willDestroy const): Deleted.
(WTF::RefCountDebugger::willDelete const): Deleted.
(WTF::RefCountDebugger::willDeref const): Deleted.
(WTF::RefCountDebugger::deletionHasBegun const): Deleted.
* Source/WTF/wtf/ThreadSafeRefCounted.h:
* Source/WTF/wtf/ThreadSafeRefCountedWithSuppressingSaferCPPChecking.h:
* Source/WebCore/dom/Node.cpp:
(WebCore::Node::~Node):
* Source/WebCore/dom/Node.h:
(WebCore::Node::applyRefDuringDestructionCheck const):
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(WebGPU.beginRenderPass(_:)):
* Source/WebGPU/WebGPU/Queue.swift:
(WebGPU.writeBuffer(_:bufferOffset:data:)):
Touch the files to work around incremental build issues affecting WebGPU
Swift files.
* Source/WebKit/Shared/AuxiliaryProcess.cpp:
(WebKit::AuxiliaryProcess::initialize):
* Source/WebKit/Shared/Cocoa/WebKit2InitializeCocoa.mm:
(WebKit::runInitializationCode):
* Source/WebKit/Shared/WebKit2Initialize.cpp:
(WebKit::InitializeWebKit2):
* Source/WebKitLegacy/mac/WebView/WebView.mm:
(+[WebView initialize]):
Canonical link: https://commits.webkit.org/308415@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications