[jdk21u-dev] RFR: 8341881: [REDO] java/nio/file/attribute/BasicFileAttributeView/CreationTime.java#tmp fails on alinux3

SendaoYan syan at openjdk.org
Sat Oct 19 11:58:21 UTC 2024


Hi all,

This pull request contains a backport of commit [f56a1541](https://github.com/openjdk/jdk/commit/f56a154132f7e66b1b65adfa2aa937119999b14a) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.

The commit being backported was authored by SendaoYan on 14 Oct 2024 and was reviewed by Chen Liang, Severin Gehwolf, Magnus Ihse Bursie and Brian Burkhalter.

The original PR use FFM API to call native library, but we can't use FFM API in jdk21u directly, and the original PR dependency the file `test/lib/native/export.h`, this file not exists in jdk21 repository. So we use JNI instead of FFM API. Before this PR, the file `test/jdk/java/nio/file/attribute/BasicFileAttributeView/libCreationTimeHelper.c` and `test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTimeHelper.java` already exists cause this PR can't backport cleanly.

Additional testing:

- [x] linux-x64 build at alinux3, and run the test passed.
- [x] linux-x64 build at centos7 docker container, and run the test passed.
- [x] linux-64 compile libCreationTimeHelper.c at `centos6 docker container(glibc2.12)` by gcc 11.2.0 use below command

`libCreationTimeHelper.c` compile test command:

gcc test/jdk/java/nio/file/attribute/BasicFileAttributeView/libCreationTimeHelper.c -Ibuild/linux-x86_64-server-release/jdk/include -I build/linux-x86_64-server-release/jdk/include/linux -c


Thanks!

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

Commit messages:
 - Backport daa67f45f0c17d4087eb51a708193d6db124b426

Changes: https://git.openjdk.org/jdk21u-dev/pull/1068/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1068&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341881
  Stats: 128 lines in 3 files changed: 109 ins; 8 del; 11 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1068.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1068/head:pull/1068

PR: https://git.openjdk.org/jdk21u-dev/pull/1068


More information about the jdk-updates-dev mailing list