RFR: 8260163: IrresponsiveScriptTest.testInfiniteLoopInScript unit test fails on Windows [v2]

Kevin Rushforth kcr at openjdk.java.net
Mon Feb 1 16:58:47 UTC 2021


On Mon, 1 Feb 2021 16:52:10 GMT, Arun Joseph <ajoseph at openjdk.org> wrote:

>> Windows uses `WorkQueueGeneric` instead of `WorkQueueWin` from WebKit 610.2 onwards. In `WorkQueueWin`, `WorkQueue::dispatchAfter()` had a 20 ms `slopAdjustment` as the timer (called from `::SetTimer`) sometimes fire a few ms early. The same is not present in `WorkQueueGeneric` and needs to be added.
>> 
>> Also removing `WorkQueueWin` as it's removed for WebKit as well.
>
> Arun Joseph has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update comment

modules/javafx.web/src/main/native/Source/WTF/wtf/generic/WorkQueueGeneric.cpp line 85:

> 83:     // so far.
> 84:     const Seconds slopAdjustment { 20_ms };
> 85:     if (delay)

Since `delay` is an object of type `Seconds`, should this be `if (delay.milliseconds())`? Otherwise, won't it just check whether the object is non-null?

-------------

PR: https://git.openjdk.java.net/jfx/pull/391


More information about the openjfx-dev mailing list