RFR: 8371769: TestMemoryInvisibleParent.java fails java.nio.file.AccessDeniedException [v2]
Aleksey Shipilev
shade at openjdk.org
Fri Nov 28 10:37:49 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
Marked as reviewed by shade (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/28286#pullrequestreview-3518397646
More information about the hotspot-runtime-dev
mailing list