RFR: 8252359 - HotSpot Not Identifying it is Running in a Container
Severin Gehwolf
sgehwolf at redhat.com
Thu Sep 3 09:12:54 UTC 2020
Hi Bob,
On Wed, 2020-09-02 at 13:54 -0400, Bob Vandette wrote:
> Problem:
>
> Hotspot does not properly detect that it’s running in a container on Mac and Windows docker desktop
> based containers.
>
>
> BUG:
> https://bugs.openjdk.java.net/browse/JDK-8252359
>
> WEBREV:
> http://cr.openjdk.java.net/~bobv/8252359/webrev.01
This patch looks good to me.
Comments:
test/hotspot/jtreg/containers/cgroup/CgroupSubsystemFactory.java
With the adapted changes in there it fails prior the fix
in cgroupSubsystem_linux.cpp and passes after. That's good enough a
regression fix for me.
I've also tested it on cgroups v1 (hybrid) and cgroups v2. Works fine.
Thanks,
Severin
More information about the hotspot-runtime-dev
mailing list