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

Andrey Turbanov aturbanov at openjdk.org
Sat Nov 12 09:21:13 UTC 2022


On Sat, 12 Nov 2022 04:13:52 GMT, Sergey Bylokhov <serb 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?

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

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



More information about the client-libs-dev mailing list