Integrated: 8260695: The java.awt.color.ICC_Profile#getData/getData(int) are not thread safe
On Mon, 1 Feb 2021 09:00:18 GMT, Sergey Bylokhov <[hidden email]> 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.