RFR: 8371769: TestMemoryInvisibleParent.java fails java.nio.file.AccessDeniedException
SendaoYan
syan at openjdk.org
Thu Nov 13 09:37:14 UTC 2025
Hi all,
Test test/hotspot/jtreg/containers/docker/TestMemoryInvisibleParent.java fails when run with non-root user. Test will try to write file /sys/fs/cgroup/memory/hidden-parent-TestMemoryInvisibleParent26/memory.limit_in_bytes, and this will make non-root user report java.nio.file.AccessDeniedException. So I think we should skip this test when user is not root.
This PR also add prefix indent for a try block, but do not touch the original logic.
Change has been verified locally on linux-aarch64 with non-root user.
-------------
Commit messages:
- 8371769: TestMemoryInvisibleParent.java fails java.nio.file.AccessDeniedException
Changes: https://git.openjdk.org/jdk/pull/28286/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28286&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8371769
Stats: 14 lines in 1 file changed: 4 ins; 0 del; 10 mod
Patch: https://git.openjdk.org/jdk/pull/28286.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28286/head:pull/28286
PR: https://git.openjdk.org/jdk/pull/28286
More information about the hotspot-runtime-dev
mailing list