RFR: 8296905: Replace the native LCMS#getProfileID() method with the accessor
Sergey Bylokhov
serb at openjdk.org
Mon Nov 14 08:05:48 UTC 2022
On Sat, 12 Nov 2022 09:18:57 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> The native method used to access the private method in the `ICC_Profile` class is replaced by the accessor.
>
> 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.
-------------
PR: https://git.openjdk.org/jdk/pull/11116
More information about the client-libs-dev
mailing list