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

Sergey Bylokhov serb at openjdk.java.net
Mon Nov 9 01:30:59 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.

This pull request has now been integrated.

Changeset: 2cad8368
Author:    Sergey Bylokhov <serb at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/2cad8368
Stats:     182 lines in 2 files changed: 114 ins; 4 del; 64 mod

8255575: java.awt.color.ICC_ColorSpace is not thread-safe

Reviewed-by: prr

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

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


More information about the 2d-dev mailing list