RFR: JDK-8311917: MAP_FAILED definition seems to be obsolete in src/java.desktop/unix/native/common/awt/fontpath.c

Phil Race prr at openjdk.org
Wed Jul 12 19:33:03 UTC 2023


On Wed, 12 Jul 2023 07:07:05 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> There is a MAP_FAILED definition in src/java.desktop/unix/native/common/awt/fontpath.c but it is never used in the coding and seems to be obsolete.

I did some digging and this was used in a function related to obtaining font dirs on Solaris.
I suppose the definition was needed because the function was still compiled on Linux.
That function was removed a long time ago, even  before the Solaris port was removed.
So this is indeed obsolete.

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

Marked as reviewed by prr (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14843#pullrequestreview-1527102069



More information about the client-libs-dev mailing list