Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e7c63753e10a2fef6787c25f04e4238fb307075b
https://github.com/WebKit/WebKit/commit/e7c63753e10a2fef6787c25f04e4238fb307075b
Author: Yijia Huang <[email protected]>
Date: 2026-05-21 (Thu, 21 May 2026)
Changed paths:
A JSTests/wasm/stress/deferred-work-timer-cancel-duplicate-ticket.js
M Source/JavaScriptCore/runtime/DeferredWorkTimer.cpp
Log Message:
-----------
[JSC] Remove unneeded m_tasks append in
DeferredWorkTimer::cancelPendingWorkSafe
https://bugs.webkit.org/show_bug.cgi?id=312314
rdar://174738881
Reviewed by Keith Miller.
cancelPendingWorkSafe() was unconditionally appending a (ticket, noop) entry to
m_tasks for every weak ticket of a dying global. This is unnecessary because
doWork() already has a removeIf(isCancelled) pass at the end that purges
cancelled
tickets from m_pendingTickets without needing a m_tasks entry, and
setTimeUntilFire(0_s) already ensures doWork() fires to run that cleanup.
Test: JSTests/wasm/stress/deferred-work-timer-cancel-duplicate-ticket.js
Originally-landed-as: 305413.677@safari-7624-branch (09af279a99da).
rdar://176058867
Canonical link: https://commits.webkit.org/313670@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications