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. ------------- Commit messages: - 8295812: Skip the "half float" support in LittleCMS during the build Changes: https://git.openjdk.org/jdk/pull/10830/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10830&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8295812 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/10830.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10830/head:pull/10830 PR: https://git.openjdk.org/jdk/pull/10830