RFR: 8341282: (fs) Move creation time fallback logic to Java layer (Linux) [v4]

Alan Bateman alanb at openjdk.org
Wed Oct 2 17:27:42 UTC 2024


On Wed, 2 Oct 2024 17:18:08 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c line 629:
>> 
>>> 627:     (*env)->SetLongField(env, attrs, attrs_st_birthtime_sec, (jlong)buf->stx_btime.tv_sec);
>>> 628:     (*env)->SetLongField(env, attrs, attrs_st_birthtime_nsec, (jlong)buf->stx_btime.tv_nsec);
>>> 629: 
>> 
>> I think I need a reminder as to why we put values into these two fields when not available.
>
>> I think I need a reminder as to why we put values into these two fields when not available.
> 
> There's no reason to do so except to avoid testing availability.

It still must test, in order to set the right value for the new available field.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21274#discussion_r1784937246


More information about the nio-dev mailing list