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

Mandy Chung mchung at openjdk.java.net
Mon May 3 22:01:51 UTC 2021


On Fri, 30 Apr 2021 22:39:46 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> Replace the use of reflection with a direct method call to a platform-specific implementation class where `SystemMetrics::instance` returns `CgroupMetrics.getInstance()` on linux and returns null on other platforms.

This pull request has now been integrated.

Changeset: 3544a9d0
Author:    Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/3544a9d0e4a071ad9c82aa17ab113e0101b4020b
Stats:     103 lines in 4 files changed: 93 ins; 8 del; 2 mod

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

Reviewed-by: redestad

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

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


More information about the core-libs-dev mailing list