[OpenJDK 2D-Dev] RFR: 8255575: java.awt.color.ICC_ColorSpace is not thread-safe

Phil Race prr at openjdk.java.net
Sun Nov 8 21:48:55 UTC 2020


On Thu, 5 Nov 2020 01:34:25 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> The ICC_ColorSpace class uses a couple of internal data caches that might be used w/o any synchronization by different threads.
> 
> The solution is to wrap the initialization of the cached data by the DLC. I have checked performance impact by the J2DBench and it seems no big difference before/after the fix.
> 
> BTW jdk16 in some cases x10 times faster than 8u and 11u. Probably we should backport something, will check that.

Marked as reviewed by prr (Reviewer).

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

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


More information about the 2d-dev mailing list