On Thu, 22 Oct 2020 12:29:51 GMT, Pankaj Bansal <pban...@openjdk.org> wrote:
> The test test.com.sun.javafx.image.impl.ImageRaceTest is fails intermittently > in linux > > This is caused by use of Thread.yield. Thread.yield is used to pause the > current thread for some time. It gives a hint to thread scheduler that the > current thread should pause and other threads with same or higher priority > should execute. But it is a hint only and can be ignored. so the current > thread may very well continue to operate. This causes the test to fail on > some slow machines. > > Better approach in this scenario would be to use Thread.sleep to make the > thread wait for some time for some event. This pull request has now been integrated. Changeset: a5a71d11 Author: Pankaj Bansal <pban...@openjdk.org> Committer: Kevin Rushforth <k...@openjdk.org> URL: https://git.openjdk.java.net/jfx/commit/a5a71d11 Stats: 8 lines in 1 file changed: 6 ins; 0 del; 2 mod 8247494: Test failure in ImageRaceTest on some systems Reviewed-by: kcr ------------- PR: https://git.openjdk.java.net/jfx/pull/332