RFR: 8296905: Replace the native LCMS#getProfileID() method with the accessor [v2]

Sergey Bylokhov serb at openjdk.org
Sun Nov 20 07:25:25 UTC 2022


On Mon, 14 Nov 2022 08:03:40 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> src/java.desktop/share/classes/sun/awt/AWTAccessor.java line 891:
>> 
>>> 889:      */
>>> 890:     public static ICC_ProfileAccessor getICC_ProfileAccessor() {
>>> 891:         if (iccProfileAccessor == null) {
>> 
>> For `SharedSecrets` in java.base code was updated to use single read (to avoid concurrency problems) - see [JDK-8259021](https://bugs.openjdk.org/browse/JDK-8259021)
>> Shouldn't we use the same patter here?
>
> Yes, you are right, let me fix that first.

The AWTAccessor and SwingAccessor files are updated by https://github.com/mrserb/jdk/commit/c50a9047b4324b280b2b5d1fc70e18aac372a50c. This patch now uses the new pattern.

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

PR: https://git.openjdk.org/jdk/pull/11116



More information about the client-libs-dev mailing list