On Fri, 8 May 2026 19:52:11 GMT, Phil Race <[email protected]> wrote: >> Some coding from Region.c seems to be unnecessary in the headless build, >> e.g. RegionToYXBandedRectangles . >> >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > src/java.desktop/share/native/libawt/java2d/pipe/Region.c line 111: > >> 109: >> 110: #ifndef HEADLESS >> 111: JNIEXPORT jint JNICALL > > This is a very unique use of HEADLESS. > it is used to exclude code that cannot be included in a headless build. > This instead happens to be a case of "it isn't used in a headless build". > > Why is excluding this important ?
We are just looking a bit into the headless builds, and what is in (and what is excluded). So these methods were noticed. It is not 'super important', but if we can get the libawt a little smaller, it is a good thing. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/31088#discussion_r3216842287
