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

This pull request has now been integrated.

Changeset: 1bd11a7f
Author:    Sergey Bylokhov <[email protected]>
URL:       
https://git.openjdk.java.net/jdk/commit/1bd11a7f2ca433f4aa9c545a20960e0778ec545e
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8273887: [macos] java/awt/color/ICC_ColorSpace/MTTransformReplacedProfile.java 
timed out

Reviewed-by: aivanov

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

PR: https://git.openjdk.java.net/jdk/pull/5587

Reply via email to