Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 668b5e5a8de4a8e0b085eedd66b0e13cdc8b25ed
      
https://github.com/WebKit/WebKit/commit/668b5e5a8de4a8e0b085eedd66b0e13cdc8b25ed
  Author: Angelos Oikonomopoulos <[email protected]>
  Date:   2026-05-25 (Mon, 25 May 2026)

  Changed paths:
    M Tools/TestWebKitAPI/Tests/WTF/AutomaticThread.cpp

  Log Message:
  -----------
  [Debug] WTF.AutomaticThreadTemporaryStop is a flaky assertion crash
https://bugs.webkit.org/show_bug.cgi?id=315015

Reviewed by Claudio Saavedra.

When the test shuts down the AutomaticThread, it does so by submitting
an item that will result in a PollResult::Stop and then notifying the
thread. That leaves a small window of opportunity for the thread to
process the Stop and exit. This causes start() to hit the m_isRunning
assertion.

Ensure the AutomaticThread can't exit before being notified by holding
the lock between the action of submitting the Exit work item and
notifying it.

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



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

Reply via email to