RFR: 8253939: [TESTBUG] Increase coverage of the cgroups detection code

Severin Gehwolf sgehwolf at openjdk.java.net
Tue Oct 27 19:06:19 UTC 2020


On Mon, 12 Oct 2020 13:24:16 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> Test only change. With [JDK-8253435](https://bugs.openjdk.java.net/browse/JDK-8253435) a test has been added on the hotspot side, but nothing for the Java Metrics code. Same for [JDK-8252359](https://bugs.openjdk.java.net/browse/JDK-8252359).
> 
> When JDK-8217766 got fixed cgroup factories with the detection logic didn't exist so were harder to test. This patch adds tests for them too.
> 
> Thoughts?

@bobvandette Could you please take a look at this when you get a chance?

I'd like to get this in before I propose [JDK-8254001](https://bugs.openjdk.java.net/browse/JDK-8254001) which would enable us to have better tests for all sorts of corner cases irrespective of the system it runs on.

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

PR: https://git.openjdk.java.net/jdk/pull/609


More information about the hotspot-runtime-dev mailing list