RFR: 8351382: New test containers/docker/TestMemoryWithSubgroups.java is failing [v2]

Sergey Chernyshev schernyshev at openjdk.org
Tue Mar 11 00:53:34 UTC 2025


On Mon, 10 Mar 2025 13:49:10 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> This won't work under `podman`:
> 
> ```
> $ podman info -f '{{println .SecurityOptions}}
> > '
> Error: template: info:1:10: executing "info" at <.SecurityOptions>: can't evaluate field SecurityOptions in type system.infoReport
> ```
> I'm not sure we need to go through the `SecurityOptions` thing. How about `if (!Platform.isRoot()) { ... }`?

Thanks @jerboaa , I updated the PR, please take a look.
`Platform.isRoot()` works with podman, but it doesn't work with docker. The latter depends on the mode in which the dockerd runs, rather than on whether the container is started with root privileges.

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

PR Comment: https://git.openjdk.org/jdk/pull/23948#issuecomment-2712177546


More information about the hotspot-runtime-dev mailing list