RFR: 8252596: [TESTBUG] WebPageShim::paint is not thread-safe

Kevin Rushforth kcr at openjdk.java.net
Thu Oct 22 13:32:10 UTC 2020


On Wed, 21 Oct 2020 17:30:36 GMT, Arun Joseph <ajoseph at openjdk.org> wrote:

> Issue: Tests using `WebPageShim::paint` fails around 1/10 times.
> 
> Fix: Execute `WebPageShim::paint` in the render thread using `PrismInvoker`. Ran tests over 100 times, no failures.
> 
> Used the initial unit test in the PR for [JDK-8202990](https://bugs.openjdk.java.net/browse/JDK-8202990).

Looks good. I can confirm that it fixes the problem for me. On my machine the original test from [JDK-8202990](https://bugs.openjdk.java.net/browse/JDK-8202990) fails quite often without this fix. I was able to run 100 iterations of the test with no failure with your fix.

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

Marked as reviewed by kcr (Lead).

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


More information about the openjfx-dev mailing list