Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 957b52180beef788a5eae5231cbf6ac4b9940d31
      
https://github.com/WebKit/WebKit/commit/957b52180beef788a5eae5231cbf6ac4b9940d31
  Author: Kimmo Kinnunen <[email protected]>
  Date:   2026-08-11 (Tue, 11 Aug 2026)

  Changed paths:
    M Source/WTF/wtf/MemoryPressureHandler.cpp
    M Source/WTF/wtf/MemoryPressureHandler.h
    M Source/WebKit/GPUProcess/GPUProcess.cpp
    M Source/WebKit/NetworkProcess/NetworkProcess.cpp
    M Source/WebKit/UIProcess/WebMemoryPressureHandler.cpp

  Log Message:
  -----------
  REGRESSION(318840@main) WeakPtr thread assert in MemoryPressureHandler
https://bugs.webkit.org/show_bug.cgi?id=321502
rdar://184606411

Reviewed by Keith Miller.

JS accesses the handler in non-main thread. This access is sometimes the
first one, binding the CanMakeWeakPtr WeakPtrFactory to the main thread.

Avoid by not using WeakPtrs.

* Source/WTF/wtf/MemoryPressureHandler.cpp:
(WTF::MemoryPressureHandler::MemoryPressureHandler):
(WTF::MemoryPressureHandler::setShouldUsePeriodicMemoryMonitor):
* Source/WTF/wtf/MemoryPressureHandler.h:

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



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

Reply via email to