On Mon, 20 Sep 2021 19:29:10 GMT, Sergey Bylokhov <[email protected]> wrote:
> This testcase creates two threads for each tag, one thread continuously > change the profiles, the second thread use that profiles for color > conversion. The first thread executed no more than 15 seconds, and the second > thread should be stopped when the first thread end. > > Unfortunately on the slow systems the second thread may occupy all cpu time, > and will run forever since the first thread will not be able make even one > iteration to stop the second thread. I was able to reproduce it by changing > implementation of color conversion so it will do x10 more work. > > The fix add a check to stop the second thread after 15 seconds. > > @lawrence-andrew please take a look and confirm that it will work fine on > your system Run the fixed testcase on the same host where the timeout was reproduced and the issue is not reproduced after running the test case several time and one more observation is test case run finish running faster. Looks good to me! ------------- PR: https://git.openjdk.java.net/jdk/pull/5587
