RFR: 8295812: Skip the "half float" support in LittleCMS during the build

Phil Race prr at openjdk.org
Sat Oct 29 01:24:30 UTC 2022


On Sun, 23 Oct 2022 20:10:35 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> The Java2d do not use "half" float in the image layouts, so we can disable it in the LittleCMS library during the build. It is possible to do using [this](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/native/liblcms/lcms2.h#L85) public option:
> 
> 
> // Uncomment to get rid of the tables for "half" float support
> // #define CMS_NO_HALF_SUPPORT 1
> 
> 
> This change cuts not only the unused by java2d functions but also [such](https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.desktop/share/native/liblcms/cmshalf.c#L63) tables.
> 
> The size of liblcms decreased by 20 kB on Linux(536024 vs 515152) and 15 kB on windows(246784 vs 231424). On macOS the  win is only 300 bytes.

Marked as reviewed by prr (Reviewer).

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

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



More information about the client-libs-dev mailing list