[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    [OpenJDK 2D-Dev] Integrated: 8255575: java.awt.color.ICC_ColorSpace is not thread-safe
From:       Sergey Bylokhov <serb () openjdk ! java ! net>
Date:       2020-11-09 1:30:59
Message-ID: H_5DyqmJ1TUOWMdXeeHUAWGBFEyNpSUO5v6BNCLFgVU=.845d1b6a-98cd-47bf-9cee-db959d5c1c7c () github ! com
[Download RAW message or body]

On Thu, 5 Nov 2020 01:34:25 GMT, Sergey Bylokhov <serb@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@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic