RFR: 8374945: Avoid fstat in os::open

Claes Redestad redestad at openjdk.org
Mon Jan 12 09:25:44 UTC 2026


On Sat, 10 Jan 2026 16:55:08 GMT, Jonas Norlinder <jnorlinder at openjdk.org> wrote:

> Eliminate unnecessary calls to fstat in os::open akin to JDK-8373647. This optimization reduces system overhead.

This would skip the (weird only-once) `FD_CLOEXEC` block that would be executed on the first successful open. Also the `(...) != 0` seem redundant.

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

PR Comment: https://git.openjdk.org/jdk/pull/29152#issuecomment-3737589012


More information about the hotspot-runtime-dev mailing list