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

Severin Gehwolf sgehwolf at openjdk.org
Fri Nov 28 10:47:52 UTC 2025


On Mon, 17 Nov 2025 02:45:45 GMT, SendaoYan <syan at openjdk.org> wrote:

>> 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

FYI: Updated the summary on the bug. Please change the PR title accordingly before integrating.

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

PR Comment: https://git.openjdk.org/jdk/pull/28286#issuecomment-3588801176


More information about the hotspot-runtime-dev mailing list