Integrated: 8371769: TestMemoryInvisibleParent.java fails with java.nio.file.AccessDeniedException
SendaoYan
syan at openjdk.org
Mon Dec 1 02:33:03 UTC 2025
On Thu, 13 Nov 2025 09:28:27 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.
This pull request has now been integrated.
Changeset: 3fd551f9
Author: SendaoYan <syan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3fd551f9926601b05a13a22b556d55425a37ee4d
Stats: 14 lines in 1 file changed: 4 ins; 0 del; 10 mod
8371769: TestMemoryInvisibleParent.java fails with java.nio.file.AccessDeniedException
Reviewed-by: sgehwolf, shade
-------------
PR: https://git.openjdk.org/jdk/pull/28286
More information about the hotspot-runtime-dev
mailing list