Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0be79662c16816e7b9cd91a73f77cb5939c27b14
      
https://github.com/WebKit/WebKit/commit/0be79662c16816e7b9cd91a73f77cb5939c27b14
  Author: Chris Dumez <[email protected]>
  Date:   2026-02-27 (Fri, 27 Feb 2026)

  Changed paths:
    M Source/WTF/wtf/FileSystem.h
    M Source/WTF/wtf/RefCountDebugger.h
    M Source/WTF/wtf/SizeLimits.cpp
    M Source/WTF/wtf/ThreadSafeRefCounted.h
    M Source/WTF/wtf/ThreadSafeRefCountedWithSuppressingSaferCPPChecking.h
    M Source/WTF/wtf/persistence/PersistentCoders.cpp
    M Source/WebCore/PAL/pal/text/TextCodec.h
    M Source/WebCore/html/parser/HTMLSrcsetParser.h
    M Source/WebCore/page/WebKitPoint.h
    M Source/WebGPU/WebGPU/CommandEncoder.swift
    M Source/WebKit/UIProcess/API/glib/WebKitScriptDialogPrivate.h
    M Tools/TestWebKitAPI/Tests/WTF/DateMath.cpp
    M Tools/TestWebKitAPI/Tests/WTF/RobinHoodHashMap.cpp

  Log Message:
  -----------
  [WTF] Improve RefCountDebugger::applyRefDerefThreadingCheck() to catch more 
bugs
https://bugs.webkit.org/show_bug.cgi?id=308806
rdar://169618659

Reviewed by Ryosuke Niwa.

Improve RefCountDebugger::applyRefDerefThreadingCheck() to catch more
bugs. In particular, we now make sure the refcount always gets
incremented on the same thread / serial work queue by leveraging
ThreadLikeAssertion. Previously, the code would only distinguish main
thread vs non-main thread. I have also bumped the ASSERT to be an
ASSERT_WITH_SECURITY_IMPLICATION.

* Source/WTF/wtf/FileSystem.h:
* Source/WTF/wtf/RefCountDebugger.h:
(WTF::RefCountDebugger::initAsThreadSafe):
(WTF::RefCountDebugger::disableThreadingChecks):
(WTF::RefCountDebugger::enableThreadingChecksGlobally):
(WTF::RefCountDebugger::applyRefDerefThreadingCheck const):
(WTF::RefCountDebugger::RefCountDebugger): Deleted.
* Source/WTF/wtf/SizeLimits.cpp:
* Source/WTF/wtf/ThreadSafeRefCounted.h:
* Source/WTF/wtf/ThreadSafeRefCountedWithSuppressingSaferCPPChecking.h:
* Source/WTF/wtf/persistence/PersistentCoders.cpp:
* Source/WebCore/PAL/pal/text/TextCodec.h:
* Source/WebCore/html/parser/HTMLSrcsetParser.h:
* Source/WebCore/page/WebKitPoint.h:
* Source/WebGPU/WebGPU/CommandEncoder.swift:
* Source/WebKit/UIProcess/API/glib/WebKitScriptDialogPrivate.h:
* Tools/TestWebKitAPI/Tests/WTF/DateMath.cpp:
* Tools/TestWebKitAPI/Tests/WTF/RobinHoodHashMap.cpp:

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



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

Reply via email to