RFR: 8371769: TestMemoryInvisibleParent.java fails java.nio.file.AccessDeniedException [v2]

SendaoYan syan at openjdk.org
Mon Nov 17 02:45:45 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.

SendaoYan has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'openjdk:master' into jbs8371769
 - 8371769: TestMemoryInvisibleParent.java fails java.nio.file.AccessDeniedException

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28286/files
  - new: https://git.openjdk.org/jdk/pull/28286/files/a6ee85df..2837903c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=28286&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28286&range=00-01

  Stats: 4767 lines in 126 files changed: 2581 ins; 1305 del; 881 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