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

Sergey Bylokhov serb at openjdk.org
Thu Nov 10 06:11:06 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.

This pull request has now been integrated.

Changeset: f0a6e71e
Author:    Sergey Bylokhov <serb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f0a6e71e4d63c9820659f6ff29f94d0476d48b09
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

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

Reviewed-by: erikj, prr, ihse

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

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



More information about the client-libs-dev mailing list