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

List:       openjdk-2d-dev
Subject:    [OpenJDK 2D-Dev] Integrated: 8260695: The java.awt.color.ICC_Profile#getData/getData(int) are not th
From:       Sergey Bylokhov <serb () openjdk ! java ! net>
Date:       2021-02-22 22:39:44
Message-ID: mv6M7QlpCn2yjOFFTI1AFPmdAJy7u0ODmssJBeLR6ec=.5b21fe3d-3a29-4408-b0e5-04de5d6cb4f2 () github ! com
[Download RAW message or body]

On Mon, 1 Feb 2021 09:00:18 GMT, Sergey Bylokhov <serb@openjdk.org> wrote:

> Both methods are implemented in a similar way.
> 1. Requests the size of the profile/tag data
> 2. Creates an array of the correct size
> 3. Requests the data and copy it to the array
> 
> If the data will be changed concurrently between steps 2. and 3. then we will get a \
> mismatch between the array and copied data.  
> In the fix, all steps above are merged to just one step - return the data when \
> requested.

This pull request has now been integrated.

Changeset: a7e2e80f
Author:    Sergey Bylokhov <serb@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/a7e2e80f
Stats:     294 lines in 7 files changed: 138 ins; 110 del; 46 mod

8260695: The java.awt.color.ICC_Profile#getData/getData(int) are not thread safe

Reviewed-by: azvegint, aivanov

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

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


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

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