[jdk11u-dev] Integrated: 8266391: Replace use of reflection in jdk.internal.platform.Metrics

Severin Gehwolf sgehwolf at openjdk.java.net
Mon Mar 28 12:22:45 UTC 2022


On Fri, 25 Mar 2022 17:27:10 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> The cgroups metrics is a Linux-only feature. Instead of using reflection and returning `null` on CNFE platform specific classes can be used instead. This is a no-op from a functionality perspective and avoids reflection, which is a good thing.

This pull request has now been integrated.

Changeset: 2bb6a3b1
Author:    Severin Gehwolf <sgehwolf at openjdk.org>
URL:       https://git.openjdk.java.net/jdk11u-dev/commit/2bb6a3b1333e211acf4a614b32762b5e8dbc0982
Stats:     103 lines in 4 files changed: 93 ins; 8 del; 2 mod

8266391: Replace use of reflection in jdk.internal.platform.Metrics

Backport-of: 3544a9d0e4a071ad9c82aa17ab113e0101b4020b

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

PR: https://git.openjdk.java.net/jdk11u-dev/pull/950


More information about the jdk-updates-dev mailing list