RFR: 8273887: [macos] java/awt/color/ICC_ColorSpace/MTTransformReplacedProfile.java timed out
Alexey Ivanov
aivanov at openjdk.java.net
Mon Sep 20 21:06:45 UTC 2021
On Mon, 20 Sep 2021 19:29:10 GMT, Sergey Bylokhov <serb at openjdk.org> 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
Marked as reviewed by aivanov (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/5587
More information about the client-libs-dev
mailing list