RFR: 8375006: [Linux] Remove obsolete O_CLOEXEC check in os::open

Jonas Norlinder jnorlinder at openjdk.org
Mon Jan 12 14:57:55 UTC 2026


On Mon, 12 Jan 2026 12:50:48 GMT, Jonas Norlinder <jnorlinder at openjdk.org> wrote:

> Linux got support for O_CLOEXEC in 2.6.23. This version was released in October 9, 2007. OpenJDK does not support versions that old anymore so this logic can be removed.

Please note that with the removal of `#ifdef O_CLOEXEC`, we will require building on a system with kernel headers >= 2.6.23 and glibc >= 2.7.

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

PR Comment: https://git.openjdk.org/jdk/pull/29168#issuecomment-3738952467


More information about the hotspot-runtime-dev mailing list