Bug 220888

Summary: [JSC] DeferredWorkTimer should clear pending task after running
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch mark.lam: review+

Description Yusuke Suzuki 2021-01-22 21:22:26 PST
[JSC] DeferredWorkTimer should clear pending task after running
Comment 1 Yusuke Suzuki 2021-01-22 21:28:15 PST
Created attachment 418210 [details]
Patch
Comment 2 Yusuke Suzuki 2021-01-22 21:31:39 PST
Created attachment 418211 [details]
Patch
Comment 3 Yusuke Suzuki 2021-01-22 23:12:08 PST
Comment on attachment 418211 [details]
Patch

Looking.
Comment 4 Yusuke Suzuki 2021-01-22 23:44:00 PST
Created attachment 418219 [details]
Patch
Comment 5 Yusuke Suzuki 2021-01-23 02:18:20 PST
Created attachment 418220 [details]
Patch
Comment 6 Mark Lam 2021-01-23 11:33:59 PST
Comment on attachment 418220 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=418220&action=review

r=me

> Source/JavaScriptCore/runtime/JSPromise.cpp:-186
> -    vm.deferredWorkTimer->cancelPendingWork(this);

Is there a reason to still keep DeferredWorkTimer::cancelPendingWork()?  I see that you've removed all calls to it.  If not, we should remove it.
Comment 7 Yusuke Suzuki 2021-01-23 14:07:48 PST
Comment on attachment 418220 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=418220&action=review

>> Source/JavaScriptCore/runtime/JSPromise.cpp:-186
>> -    vm.deferredWorkTimer->cancelPendingWork(this);
> 
> Is there a reason to still keep DeferredWorkTimer::cancelPendingWork()?  I see that you've removed all calls to it.  If not, we should remove it.

There are no users, so we can remove it :).
Comment 8 Yusuke Suzuki 2021-01-23 14:11:39 PST
Committed r271781: <https://trac.webkit.org/changeset/271781>
Comment 9 Radar WebKit Bug Importer 2021-01-23 14:12:16 PST
<rdar://problem/73539704>