RFR: 8365807: (fs) Two-arg UnixFileAttributes.getIfExists should not use exception for control flow [v2]
Brian Burkhalter
bpb at openjdk.org
Fri Aug 22 16:53:52 UTC 2025
On Fri, 22 Aug 2025 16:45:26 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> UnixFileAttributes.getIfExists is performance critical so this is why it the native method returns errno rather than throws.
So the `stat0` and `fstatat0` methods should revert to returning `errno`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26889#issuecomment-3215001314
More information about the nio-dev
mailing list