RFR: 8273704: DrawStringWithInfiniteXform.java failed : drawString with InfiniteXform transform takes long time
Sergey Bylokhov
serb at openjdk.java.net
Sat Oct 23 01:42:01 UTC 2021
On Fri, 22 Oct 2021 19:25:28 GMT, Phil Race <prr at openjdk.org> wrote:
> This test has only failed once - for reasons that are not clear.
> I wanted to just increase the timeout but the test was written such that it always waited as long
> as the timeout since it had an un-canceled scheduled task.
>
> So I've also made the test cancel the task once it is complete and made the variables volatile
> so that they should be read properly by the other thread.
Why do we need all that TimerTask machinery? We can just place the code to the main method, and the jtreg will provide useful information on the timeout if any.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6087
More information about the client-libs-dev
mailing list