[webkit-changes] [WebKit/WebKit] 9c5882: Cap the duration of EventLoop::run in the main thread

Ryosuke Niwa noreply at github.com
Mon Aug 14 21:43:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9c588230925217e6bd22cb40faaba28dac210e1a
      https://github.com/WebKit/WebKit/commit/9c588230925217e6bd22cb40faaba28dac210e1a
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    A LayoutTests/fast/eventloop/queue-task-event-loop-starvation-expected.txt
    A LayoutTests/fast/eventloop/queue-task-event-loop-starvation.html
    M Source/WebCore/dom/EventLoop.cpp
    M Source/WebCore/dom/EventLoop.h
    M Source/WebCore/dom/WindowEventLoop.cpp
    M Source/WebCore/platform/ThreadTimers.cpp
    M Source/WebCore/platform/ThreadTimers.h

  Log Message:
  -----------
  Cap the duration of EventLoop::run in the main thread
https://bugs.webkit.org/show_bug.cgi?id=260112

Reviewed by Yusuke Suzuki.

Cap the duration of EventLoop::run in the main thread using the same time limit
ThreadTimers::sharedTimerFiredInternal() uses.

* LayoutTests/fast/eventloop/queue-task-event-loop-starvation-expected.txt: Added.
* LayoutTests/fast/eventloop/queue-task-event-loop-starvation.html: Added.
* Source/WebCore/dom/EventLoop.cpp:
(WebCore::EventLoop::run):
* Source/WebCore/dom/EventLoop.h:
* Source/WebCore/dom/WindowEventLoop.cpp:
(WebCore::WindowEventLoop::didReachTimeToRun):
* Source/WebCore/platform/ThreadTimers.cpp:
* Source/WebCore/platform/ThreadTimers.h:

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




More information about the webkit-changes mailing list