Integrated: JDK-8284977: MetricsTesterCgroupV2.getLongValueEntryFromFile fails when named value doesn't exist

Matthias Baesken mbaesken at openjdk.java.net
Wed Jun 15 06:42:42 UTC 2022


On Tue, 14 Jun 2022 11:26:17 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> When running test/jdk/jdk/internal/platform/cgroup/TestCgroupMetrics.java on ubuntu 21.10 or 22 , this test looks for a named value "nr_periods" in the file /sys/fs/cgroup/..../cpu.stat . However this metric is not always present, which leads to an AIOOB exception.

This pull request has now been integrated.

Changeset: 444a0d98
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/444a0d98ac06ab043e3b11281234fd515abff302
Stats:     5 lines in 1 file changed: 5 ins; 0 del; 0 mod

8284977: MetricsTesterCgroupV2.getLongValueEntryFromFile fails when named value doesn't exist

Reviewed-by: sgehwolf, mdoerr

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

PR: https://git.openjdk.org/jdk/pull/9153


More information about the hotspot-runtime-dev mailing list